You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I have a GeoJSON feature collection of points I can only get the very first point to provide a popup, same with hover. Has anyone else come across this issue?
When I put a console.log('hello') in the click function it only fires for the first point in the instance. It doesn't seem to pick up any others, yet they are all rendered on the map OK.
The text was updated successfully, but these errors were encountered:
benboughton1
changed the title
Feature collection of points click only works on first point
GeoJSON Feature Collection of points click only fires on first point
Nov 26, 2020
It appears the only way to get this working is to flip the geometry field around in the GeoJSON. None of the built in latitudeFirst() or setting lat/lon index in options etc features seem to fix it.
When I have a GeoJSON feature collection of points I can only get the very first point to provide a popup, same with hover. Has anyone else come across this issue?
When I put a console.log('hello') in the click function it only fires for the first point in the instance. It doesn't seem to pick up any others, yet they are all rendered on the map OK.
The text was updated successfully, but these errors were encountered: