openlayers4打开openstreetmap的做法

时间:2026-02-15 03:10:47

1、打开https://openlayers.org/download/ 下载OpenLayers,如下图:

openlayers4打开openstreetmap的做法

2、使用vs2013新建一个ASP.NET Web应用程序:OpenLayers4Demo,如下图:

openlayers4打开openstreetmap的做法

openlayers4打开openstreetmap的做法

3、新建一个index.htm,并设为起始页,如下图:

openlayers4打开openstreetmap的做法

openlayers4打开openstreetmap的做法

4、在艺施酱 index.htm输入如下代码:

openlayers4打开openstreetmap的做法

openlayers4打开openstreetmap的做法

5、单击调试按钮,启动新盯浏览器就可以看到效果图了,如篇各下图:

openlayers4打开openstreetmap的做法

© 2026 一点资料
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com