parent
0faebaa83c
commit
374f7002d2
@ -70,6 +70,7 @@
|
||||
<script src="leaflet/leaflet-omnivore.min.js"></script>
|
||||
<script src="leaflet/Leaflet.Coordinates.js"></script>
|
||||
<script src="leaflet/leaflet.latlng-graticule.js"></script>
|
||||
<script src="leaflet/VectorTileLayer.umd.min.js"></script>
|
||||
<script src="leaflet/Semicircle.js"></script>
|
||||
<script src="leaflet/dialog-polyfill.js"></script>
|
||||
|
||||
|
4
worldmap/leaflet/VectorTileLayer.umd.min.js
vendored
Normal file
4
worldmap/leaflet/VectorTileLayer.umd.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -2362,6 +2362,9 @@ function doCommand(cmd) {
|
||||
overlays[cmd.map.overlay] = new L.imageOverlay(cmd.map.url, L.latLngBounds(cmd.map.bounds), cmd.map.opt);
|
||||
}
|
||||
}
|
||||
else if (cmd.map.url.slice(-4).toLowerCase() === ".pbf") {
|
||||
overlays[cmd.map.overlay] = VectorTileLayer(cmd.map.url, cmd.map.opt);
|
||||
}
|
||||
else {
|
||||
overlays[cmd.map.overlay] = L.tileLayer(cmd.map.url, cmd.map.opt);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user