From b66bd98035ded7ed67587aefc17a7ab16d72d646 Mon Sep 17 00:00:00 2001 From: thisisaaronland Date: Thu, 15 Jul 2021 16:44:58 -0700 Subject: [PATCH] update geotag.maps.js to reflect protomaps constructors as of v0.15.0 --- static/javascript/geotag.maps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/javascript/geotag.maps.js b/static/javascript/geotag.maps.js index 19ecfc4..01dd930 100644 --- a/static/javascript/geotag.maps.js +++ b/static/javascript/geotag.maps.js @@ -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);