kosmtik-geojson-overlay
Advanced tools
Comparing version 0.0.2 to 0.0.3
12
front.js
@@ -53,9 +53,9 @@ L.K.Map.addInitHook(function () { | ||
this.geojsonOverlay = L.geoJson(null, {pointToLayer: pointToLayer, onEachFeature: onEachFeature, style: style}); | ||
builder.on('synced', function (e) { | ||
if (e.field === 'data') L.bind(addGeojson, this)(); | ||
else if (e.field === 'active') L.bind(syncState, this)(); | ||
builder.on('postsync', function (e) { | ||
if (e.helper.field === 'data') L.bind(addGeojson, this)(); | ||
else if (e.helper.field === 'active') L.bind(syncState, this)(); | ||
}, this); | ||
container.appendChild(builder.build()); | ||
var zoomTo = L.DomUtil.create('a', 'button', container); | ||
zoomTo.innerHTML = "Zoom to"; | ||
zoomTo.innerHTML = 'Zoom to'; | ||
L.DomEvent.on(zoomTo, 'click', L.DomEvent.stop).on(zoomTo, 'click', fitBounds, this); | ||
@@ -66,3 +66,3 @@ this.sidebar.addTab({ | ||
content: container, | ||
callback: function () {builder.helpers.data.input.focus();} | ||
callback: function () { builder.helpers.data.input.focus(); } | ||
}); | ||
@@ -78,3 +78,3 @@ this.commands.add({ | ||
this.commands.add({ | ||
callback: function () {this.sidebar.open('.geojson-overlay');}, | ||
callback: function () { this.sidebar.open('.geojson-overlay'); }, | ||
context: this, | ||
@@ -81,0 +81,0 @@ name: 'GeoJSON overlay: configure' |
{ | ||
"name": "kosmtik-geojson-overlay", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Show a geojson overlay on top of your Kosmtik map", | ||
@@ -24,3 +24,3 @@ "main": "index.js", | ||
"homepage": "https://github.com/kosmtik/kosmtik-geojson-overlay", | ||
"kosmtik": "~0.0.9" | ||
"kosmtik": "~0.0.11" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4453