We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4860ba5 commit 45059a2Copy full SHA for 45059a2
examples/mapboxgl/02_getFeatureBySQL.html
@@ -87,7 +87,7 @@
87
});
88
map.on('click', 'queryDatas', function (e) {
89
new mapboxgl.Popup()
90
- .setLngLat(e.features[0].geometry.center)
+ .setLngLat(e.lngLat)
91
.setHTML(e.features[0].properties.SMID + "<br>" + resources.text_country + ":" + e.features[0].properties.COUNTRY)
92
.addTo(map);
93
0 commit comments