mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Mapquest layers for location editors (#9505)
This commit is contained in:
@@ -341,6 +341,18 @@ function init_map(id, engine, api_key) {
|
||||
imagerySet: 'AerialWithLabelsOnDemand'
|
||||
});
|
||||
|
||||
baseMaps = {
|
||||
"Streets": roads,
|
||||
"Satellite": satellite
|
||||
};
|
||||
L.control.layers(baseMaps, null, {position: 'bottomleft'}).addTo(leaflet);
|
||||
roads.addTo(leaflet);
|
||||
});
|
||||
} else if (engine === 'mapquest') {
|
||||
loadScript('https://www.mapquestapi.com/sdk/leaflet/v2.2/mq-map.js?key=' + api_key, function () {
|
||||
var roads = MQ.mapLayer();
|
||||
var satellite = MQ.hybridLayer();
|
||||
|
||||
baseMaps = {
|
||||
"Streets": roads,
|
||||
"Satellite": satellite
|
||||
|
||||
Reference in New Issue
Block a user