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
So either I've missed something incredibly simple or its not possible. I am creating a geojson source with a couple of polygon features, then creating a FillLayer with that source
This is in the onStyleLoadedCallback function. This works fine in that I see the polygons on the map, but am not able to drag them. If I add a polygon using the addFill function of the controller I am able to drag it. I do see tap events from the polygons in the onFeatureTapped handler that I add to the controller, but can't figure out how to get drag events. Not that that matters since I can't even drag the polygons in that layer.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
So either I've missed something incredibly simple or its not possible. I am creating a geojson source with a couple of polygon features, then creating a FillLayer with that source
`
await mapController!
.addSource("polygons", GeojsonSourceProperties(data: polyFeatures));
`
This is in the onStyleLoadedCallback function. This works fine in that I see the polygons on the map, but am not able to drag them. If I add a polygon using the addFill function of the controller I am able to drag it. I do see tap events from the polygons in the onFeatureTapped handler that I add to the controller, but can't figure out how to get drag events. Not that that matters since I can't even drag the polygons in that layer.
Any help would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions