Skip to content

Commit 45059a2

Browse files
committed
【fix】修复例子点击报错的问题 commit by liqian reveiw by songym
1 parent 4860ba5 commit 45059a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/mapboxgl/02_getFeatureBySQL.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
});
8888
map.on('click', 'queryDatas', function (e) {
8989
new mapboxgl.Popup()
90-
.setLngLat(e.features[0].geometry.center)
90+
.setLngLat(e.lngLat)
9191
.setHTML(e.features[0].properties.SMID + "<br>" + resources.text_country + ":" + e.features[0].properties.COUNTRY)
9292
.addTo(map);
9393
});

0 commit comments

Comments
 (0)