Update to use leaflet-providers
This commit is contained in:
parent
40c7fd8977
commit
a63a784dec
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,8 +1,8 @@
|
||||
{
|
||||
"/assets/frontend/js/app.js": "/assets/frontend/js/app.js?id=6444c18feb0a63300330",
|
||||
"/assets/frontend/js/app.js": "/assets/frontend/js/app.js?id=c30de31f825160aacbb4",
|
||||
"/assets/frontend/css/now-ui-kit.css": "/assets/frontend/css/now-ui-kit.css?id=b0a0f05b94a4486db4f2",
|
||||
"/assets/admin/css/vendor.min.css": "/assets/admin/css/vendor.min.css?id=cc80aec3cf1646f83d8d",
|
||||
"/assets/admin/js/app.js": "/assets/admin/js/app.js?id=3f868969d6489b407712",
|
||||
"/assets/admin/js/app.js": "/assets/admin/js/app.js?id=fd7aff514485e548f4bc",
|
||||
"/assets/installer/js/app.js": "/assets/installer/js/app.js?id=3a51850509367b06cd1f",
|
||||
"/assets/fonts/glyphicons-halflings-regular.woff2": "/assets/fonts/glyphicons-halflings-regular.woff2?id=349344e92fb16221dd56",
|
||||
"/assets/admin/fonts/glyphicons-halflings-regular.woff2": "/assets/admin/fonts/glyphicons-halflings-regular.woff2?id=349344e92fb16221dd56",
|
||||
|
@ -12,6 +12,10 @@ export default (opts) => {
|
||||
maxZoom: 10,
|
||||
layers: [],
|
||||
set_marker: false,
|
||||
providers: [
|
||||
'Esri.WorldStreetMap',
|
||||
],
|
||||
tile_layers: [],
|
||||
}, opts);
|
||||
|
||||
/*
|
||||
@ -50,7 +54,9 @@ export default (opts) => {
|
||||
scrollWheelZoom: false,
|
||||
});
|
||||
|
||||
leaflet.tileLayer.provider('Esri.WorldStreetMap').addTo(map);
|
||||
for(const i in opts.providers) {
|
||||
leaflet.tileLayer.provider(opts.providers[i]).addTo(map);
|
||||
}
|
||||
|
||||
return map;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user