kopia lustrzana https://github.com/OpenDroneMap/WebODM
19 wiersze
306 B
JavaScript
19 wiersze
306 B
JavaScript
import Utils from '../Utils';
|
|
import L from 'leaflet';
|
|
|
|
const { assert } = Utils;
|
|
|
|
const leafletPreCheck = (options) => {
|
|
assert(options.map !== undefined);
|
|
};
|
|
|
|
export default {
|
|
namespace: "Map",
|
|
|
|
endpoints: [
|
|
["willAddControls", leafletPreCheck],
|
|
["didAddControls", leafletPreCheck]
|
|
]
|
|
};
|
|
|