leaflet-headless
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "leaflet-headless", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Leaflet for node.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -7,3 +7,3 @@ Leaflet-headless | ||
- Has Leaflet 1.0.0-rc.1 as dependency. | ||
- Has Leaflet 1.0.2 as dependency. | ||
- Uses [jsdom](https://github.com/tmpvar/jsdom) to fake ad DOM. | ||
@@ -29,7 +29,6 @@ - Uses `Image` implementation and canvas from [canvas](https://github.com/LearnBoost/node-canvas). | ||
// canvas renderer for vector layers: | ||
var canvas = L.canvas(); | ||
var latlngs = [[52, 4], [54, 4], [54, 6], [52, 6], [52, 4]]; | ||
var polyline = L.polyline(latlngs, {renderer: canvas}).addTo(map); | ||
var polyline = L.polyline(latlngs).addTo(map); | ||
``` | ||
### Setting map size | ||
@@ -36,0 +35,0 @@ |
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
15599
72