How can I get the position of a specific marker on mapbox?

460 views Asked by At

I'm trying to get the position of a marker on a mapbox map in order to show a div in that position.

This is the code I tried but it does not do anything:

var a = $(geojson[0].features[1]).offset();
alert(a.top);
0

There are 0 answers