leaflet-image
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -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
32477
10
51
956