@the-grid/ed-location
Advanced tools
Comparing version 1.0.2 to 2.0.0
@@ -74,2 +74,3 @@ document.addEventListener('DOMContentLoaded', function () { | ||
, zoom: 2 | ||
, scrollWheelZoom: false | ||
} | ||
@@ -82,4 +83,2 @@ ) | ||
}) | ||
map.scrollWheelZoom.disable() | ||
@@ -114,2 +113,11 @@ var marker = L.marker([20, -35] | ||
} | ||
var url = 'https://the-grid.github.io/ed-location/' | ||
+ '?latitude=' + encodeURIComponent(block.metadata.geo.latitude) | ||
+ '&longitude=' + encodeURIComponent(block.metadata.geo.longitude) | ||
+ '&zoom=' + encodeURIComponent(block.metadata.geo.zoom) | ||
if (block.metadata.address) { | ||
url += '&address=' + encodeURIComponent(block.metadata.address) | ||
} | ||
block.metadata.isBasedOnUrl = url | ||
block.html = '<iframe src="' + url + '"></iframe>' | ||
send('changed', block) | ||
@@ -116,0 +124,0 @@ } |
{ | ||
"name": "@the-grid/ed-location", | ||
"version": "1.0.2", | ||
"version": "2.0.0", | ||
"description": "Ed widget for address geocoding and map location editing", | ||
@@ -5,0 +5,0 @@ "main": "ed-location.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
11270
8
146