Skip to content

Commit

Permalink
Propagate API keys to minimaps in layer switcher
Browse files Browse the repository at this point in the history
  • Loading branch information
tomhughes committed Sep 8, 2016
1 parent 322e714 commit e0dd431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/leaflet.layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e0dd431

Please sign in to comment.