Skip to content

Commit 91a2895

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy