【问题标题】:Mapproxy shows tiles in wrong positionMapproxy 在错误的位置显示瓷砖
【发布时间】:2018-07-20 08:44:41
【问题描述】:

我正在使用 Mapproxy 显示地图http://maps.stamen.com/toner/#3/49.78/-4.04。但是瓷砖显示在错误的位置。 例如:

Map without zoom:

Map with one level zoom:

放大后,图像看起来更奇怪。

近似配置:

层数: - 名称: StamenToner 标题: StamenMap 来源:[stamen_cache] 缓存: stamen_cache: 网格:[stamen_grid] 资料来源:[stamen_wmts] 来源: stamen_wmts: 类型:瓷砖 网址:http://tile.stamen.com/toner/%(z)s/%(y)s/%(x)s.png 网格:stamen_grid 网格: stamen_grid: srs:'EPSG:3857' 来源:'nw' tile_size: [512, 512]

我不知道为什么缩放时图块位置错误。任何建议。

【问题讨论】:

  • 你在使用带有 mapproxy 的 openlayers 吗?如果是,请分享您如何使用 mapproxy 和 openlayer 渲染地图

标签: proxy gis mapbox stamen-maps


【解决方案1】:

这适用于 MapProxy==1.13.0

layers:
  - name: StamenToner
    title: StamenMap
    sources: [stamen_cache]

caches:
  stamen_cache:
    sources: [stamen_tiles]

sources:
  stamen_tiles:
    type: tile
    url: http://tile.stamen.com/toner/%(z)s/%(x)s/%(y)s.png
    grid: GLOBAL_WEBMERCATOR

注意:检查 URL 参数顺序。 /z/x/y 而不是 /z/y/x;根据the docs

许多应用程序和库都了解地图 URL 模板的概念。这些是我们的:

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-01-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多