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);
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);