New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

leaflet-image

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leaflet-image - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

osm.html

3

index.js

@@ -55,4 +55,3 @@ var queue = require('./queue');

if (!layer.options.tiles ||
zoom > layer.options.maxZoom ||
if (zoom > layer.options.maxZoom ||
zoom < layer.options.minZoom) {

@@ -59,0 +58,0 @@ return callback();

@@ -57,4 +57,3 @@ (function(e){if("function"==typeof bootstrap)bootstrap("leafletimage",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeLeafletImage=e}else"undefined"!=typeof window?window.leafletImage=e():global.leafletImage=e()})(function(){var define,ses,bootstrap,module,exports;

if (!layer.options.tiles ||
zoom > layer.options.maxZoom ||
if (zoom > layer.options.maxZoom ||
zoom < layer.options.minZoom) {

@@ -61,0 +60,0 @@ return callback();

{
"name": "leaflet-image",
"version": "0.0.1",
"version": "0.0.2",
"description": "export leaflet maps as images",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -6,2 +6,10 @@ ## leaflet-image

## Requirements
* Any tile layer providers (OSM, MapBox, etc) must support [CORS](http://en.wikipedia.org/wiki/Cross-origin_resource_sharing)
* Any markers on the map must also support CORS. The default Leaflet-CDN markers
don't, so they aren't supported.
* Your browser must support [CORS](http://caniuse.com/#feat=cors) and [Canvas](http://caniuse.com/#feat=canvas),
so `IE >= 10` with no exceptions.
### usage

@@ -8,0 +16,0 @@

@@ -139,5 +139,3 @@ var map = L.mapbox.map('map', 'tmcw.map-u4ca5hnt', {

window.setTimeout(function() {
console.log(map.getCenter().toString());
map.panBy([100, 100]);
console.log(map.getCenter().toString());
// map.setView([0, 0], 2);

@@ -144,0 +142,0 @@ window.setTimeout(function() {

Sorry, the diff of this file is not supported yet

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