Skip to content

Commit 91a2895

Browse files
author
潘卓然-中地数码台式机
committed
修正openlayer默认经纬度坐标到地图投影系的转换示例
1 parent 1b518fc commit 91a2895

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

demo/openlayers/example/map/mapmarker/addpopup.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@
285285
addFeatrueInfo(featuerInfo);
286286
if (popup.getPosition() == undefined) {
287287
//设置popup的位置
288-
popup.setPosition([116.28, 39.54]);
288+
popup.setPosition(ol.proj.fromLonLat([116.28, 39.54]));
289289
}
290290
}
291291
});

0 commit comments

Comments
 (0)