mapquest直接图块访问已终止 [英] mapquest direct tile access discontinued

查看:114
本文介绍了mapquest直接图块访问已终止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

截至2016年7月11日,MapQuest已停止直接访问其图块.他们似乎仅支持Leaflet,iOS和Android SDK.有任何想法如何使Openlayers再次与MapQuest一起使用,还是我们应该考虑使用其他替代方法?谢谢.

As of today 2016-07-11, MapQuest has discontinued direct access to their tiles. They seem to only support Leaflet, iOS and Android SDKs. Any idea how to get Openlayers to work with MapQuest again, or should we be thinking of a different alternative? Thanks.

推荐答案

对于具有OpenLayers的底图图像,基本上 必应地图,Mapbox和DigitalGlobe.所有这三个服务都需要 一个API密钥,所有这三个都提供了免费层.

For basemap imagery with OpenLayers, we are basically down to Bing Maps, Mapbox, and DigitalGlobe. All three services require an API key, and all three offer a free tier.

我目前正在使用DigitalGlobe,对此感到非常满意 到目前为止的分辨率和覆盖范围.要在OpenLayers中使用它, 首先在他们的网站上注册API密钥.

I'm currently using DigitalGlobe and have been very pleased with their resolution and coverage thus far. To use it in OpenLayers, first sign up for an API key at their site.

http://mapsapidocs.digitalglobe.com/

然后仅使用以下磁贴源(请记住要替换YOUR_ACCESS_TOKEN):

Then just use the following tile source (remember to replace YOUR_ACCESS_TOKEN):

new ol.layer.Tile({
  title: 'DigitalGlobe Maps API: Recent Imagery with Streets',
  attribution: "© DigitalGlobe, Inc",
  source: new ol.source.XYZ({
            url: 'http://api.tiles.mapbox.com/v4/digitalglobe.nal0mpda/{z}/{x}/{y}.png?access_token=YOUR_ACCESS_TOKEN'
  })
})

这为您提供了具有分辨率的全球卫星图像 从几米到10厘米不等!他们提供 比我在此示例中提供的基础层更多的基础层,但是 这应该可以帮助您快速入门.

This gives you their global satellite imagery with resolutions ranging from a few meters down to 10 centimeters! They offer more base layers than the one I provided in this example, but this should get you started quickly.

有关带有DigitalGlobe的更多OpenLayers示例,请参见以下链接:

For more OpenLayers examples with DigitalGlobe, see this link:

http://mapsapidocs.digitalglobe.com/docs/maps-api-openlayers

这篇关于mapquest直接图块访问已终止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆