mariusandra / pigeon-maps

ReactJS Maps without external dependencies
https://pigeon-maps.js.org/
MIT License
3.43k stars 142 forks source link

Add back props to MultiLineString. closes #174 #208

Closed aloxe closed 3 months ago

aloxe commented 3 months ago

as djeka07 explained on the issue #174, adding a geojson layer to the map that contains geometry.type = MultiLineString was causing an error:

TypeError: latLngToPixel is not a function

In GeoJson, MultiLineString function was maping coordinates to render LineString for each of them but the props were missing. I just readded them.

☑ tested on my velotraces project thanks to patch-package