Update to use leaflet-providers

This commit is contained in:
Nabeel Shahzad 2018-05-14 14:17:47 -05:00
parent 40c7fd8977
commit a63a784dec
4 changed files with 11 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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/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/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/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/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", "/assets/admin/fonts/glyphicons-halflings-regular.woff2": "/assets/admin/fonts/glyphicons-halflings-regular.woff2?id=349344e92fb16221dd56",

View File

@ -12,6 +12,10 @@ export default (opts) => {
maxZoom: 10, maxZoom: 10,
layers: [], layers: [],
set_marker: false, set_marker: false,
providers: [
'Esri.WorldStreetMap',
],
tile_layers: [],
}, opts); }, opts);
/* /*
@ -50,7 +54,9 @@ export default (opts) => {
scrollWheelZoom: false, 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; return map;
}; };