Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kosmtik-geojson-overlay

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kosmtik-geojson-overlay - npm Package Compare versions

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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc