mapbox-gl-shadow-simulator 0.13.13 → 0.13.14
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
|
@@ -188,6 +188,7 @@ Takes `map` as an argument and returns a GeoJSON collection of features whose sh
|
|
|
188
188
|
|
|
189
189
|
```javascript
|
|
190
190
|
getFeatures: () => {
|
|
191
|
+
// wait for map.loaded() to ensure all vector tile data downloaded
|
|
191
192
|
const buildingData = map.querySourceFeatures('composite', { sourceLayer: 'building' }).filter((feature) => {
|
|
192
193
|
return feature.properties && feature.properties.underground !== "true" && (feature.properties.height || feature.properties.render_height)
|
|
193
194
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mapbox-gl-shadow-simulator",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.14",
|
|
4
4
|
"description": "Display terrain and structure shadows cast by the sun in a custom style layer",
|
|
5
5
|
"main": "dist/mapbox-gl-shadow-simulator.umd.min.js",
|
|
6
6
|
"types": "dist/mapbox-gl-shadow-simulator.d.ts",
|