Skip to content

Commit

Permalink
Bug fix: ensure map args are passed correctly in aaronland.maps.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sfomuseumbot committed Jan 19, 2023
1 parent 16a88cb commit 37666d7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions static/javascript/aaronland.maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ aaronland.maps = (function(){
return self.getMap(map_el, args);
},

'getMap': function(map_el, args){
'getMap': function(map_el, map_args){

if (! args){
args = {};
if (! map_args){
map_args = {};
}

var map_id = map_el.getAttribute("id");
Expand All @@ -72,8 +72,6 @@ aaronland.maps = (function(){
return maps[map_id];
}

var map_args = {};

var map = L.map(map_id, map_args);

var map_provider = map_el.getAttribute("data-map-provider");
Expand Down

0 comments on commit 37666d7

Please sign in to comment.