Propagate API keys to minimaps in layer switcher
This commit is contained in:
parent
322e7142ba
commit
e0dd431e6c
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ L.OSM.layers = function(options) {
|
|||
|
||||
map.whenReady(function() {
|
||||
var miniMap = L.map(div[0], {attributionControl: false, zoomControl: false})
|
||||
.addLayer(new layer.constructor());
|
||||
.addLayer(new layer.constructor({ apikey: layer.options.apikey }));
|
||||
|
||||
miniMap.dragging.disable();
|
||||
miniMap.touchZoom.disable();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue