0
votes

I'm reading documentation about Mapbox GL. It is impressive!

I would like to make action on mouseover on element of the map. (change style of the element, show informations...), how is it possible to have information about the element I'm hovering (even if it is a label)? Ideally, I'd like to have the openstreetmap ID, name or something with which I can identify the element.

EDIT: featuresAt doesn't seem to give enough data to change the style of the feature.

Thanks in advance for your help.

1

1 Answers

1
votes

Yes, and there's an example that demonstrates this: featuresAt. Support for labels is not yet implement, but the status is being tracked on GitHub*

  • when it is implemented, it will be noted there, until then, please don't nag the workers