网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 生活知识 知识问答

openlayers4打开openstreetmap的做法

时间:2024-10-31 22:27:06

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