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
- ![Leaflet Shadow Simulator demo](/demo.gif)
5
+ [![Leaflet Shadow Simulator demo](/demo.gif)](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
- Takes `map` as an argument and returns a GeoJSON collection of features whose shadows will be displayed on the map. Currently only supports `Polygon` and `MultiPolygon`.
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: (map) => {
160
+ getFeatures: () => {
161
161
  return [{
162
162
  "type": "Feature",
163
163
  "geometry": {
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Copyright Ted Piotrowski 2022
3
3
  * Package: leaflet-shadow-simulator
4
- * Version: 0.13.14
4
+ * Version: 0.13.15
5
5
  * For licensing visit: https://shademap.app/about/
6
6
  */
7
7
 
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "leaflet-shadow-simulator",
3
- "version": "0.13.14",
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
  },