使用Openlayers导入MapQuest地图
发布时间
阅读量:
阅读量
1、MapQuest地图瓦片构成
通过在浏览器中访问MapQuest地图服务,并按下F12键调出开发者工具以分析网络请求,可观察到其地图瓦片的访问链接结构较为清晰直观。经过整理与验证,其通用的URL格式被确认为:https://{a-d}.tiles.mapbox.com/v4/mapquest.streets/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwcXVlc3QiLCJhIjoiY2Q2N2RlMmNhY2NiZTRkMzlmZjJmZDk0NWU0ZGJlNTMifQ.mPRiEubbajc6a5y9ISgydg,下面我们就来使用Openlayers加载MapQuest地图;

2、程序编码实现
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
全部评论 (0)
还没有任何评论哟~
