leaflet-shadow-simulator 0.13.14 → 0.13.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Terrain, building and object shadow simulator for Leaflet. Display sunlight and shadow on a map for any date and time of year.
|
|
4
4
|
|
|
5
|
-

|
|
5
|
+
[](https://ted-piotrowski.github.io/leaflet-shadow-simulator/examples/map.html)
|
|
6
6
|
|
|
7
7
|
[Live Demo](https://ted-piotrowski.github.io/leaflet-shadow-simulator/examples/map.html)
|
|
8
8
|
|
|
@@ -152,12 +152,12 @@ Mapbox Terrain-DEM v1 is a Mapbox-provided raster tileset is a global elevation
|
|
|
152
152
|
|
|
153
153
|
#### getFeatures
|
|
154
154
|
|
|
155
|
-
|
|
155
|
+
Returns a GeoJSON collection of features whose shadows will be displayed on the map. Currently only supports `Polygon` and `MultiPolygon`.
|
|
156
156
|
|
|
157
157
|
##### Adds a 1000 meter tall structure near Alexandria, Egypt
|
|
158
158
|
|
|
159
159
|
```javascript
|
|
160
|
-
getFeatures: (
|
|
160
|
+
getFeatures: () => {
|
|
161
161
|
return [{
|
|
162
162
|
"type": "Feature",
|
|
163
163
|
"geometry": {
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "leaflet-shadow-simulator",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.15",
|
|
4
4
|
"description": "Display terrain and structure shadows cast by the sun in a custom Leaflet layer",
|
|
5
5
|
"main": "dist/leaflet-shadow-simulator.umd.min.js",
|
|
6
|
+
"types": "dist/leaflet-shadow-simulator.d.ts",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
9
|
},
|