Skip to content

Commit

Permalink
update geotag.maps.js to reflect protomaps constructors as of v0.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisaaronland committed Jul 15, 2021
1 parent f6dcccd commit b66bd98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/javascript/geotag.maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ geotag.maps = (function(){
let bounds_str = m.bounds.split(',');
let bounds = [[+bounds_str[1],+bounds_str[0]],[+bounds_str[3],+bounds_str[2]]];
let url = pm_uri;
layer = new protomaps.LeafletLayer({url:url, bounds:bounds, allow_200: true});
layer = protomaps.leafletLayer({url:url, bounds:bounds, allow_200: true});
layer.addTo(map);
// map.fitBounds(bounds);
map.setMaxBounds(bounds);
Expand Down

0 comments on commit b66bd98

Please sign in to comment.