总结的OSM 地图相关的分析

How OSM works:
  Tile Format: png,  z: levels [0- 18], x: Latitude [0- ], y: Longitude [0- ];
              
  From a known location(Latitude, Longitude) represented by , calculate the x,y which stand for the specific tile number:
 
Icons were embedded in the .png picture file.
 Icons were embedded in the .png picture file tranfered to web broswer. So, if we realy want to remove those icons. One possible way is to find a proper tile service, it might be operated by OSM or other 3rd party operators.
 
 There are 2 tile services operated by OSM itself: osmStandard and osmHuman, both have icons in tiles. In itsofficial site  http://www.openstreetmap.org/, they demostrate 4 kinds of map from 4 different tile services. 
 
 2 tile services are OSM self operated, others are from 3rd party tile service provider.
            'osmStandard': {
                'url': 'http://c.tile.openstreetmap.org/{z}/{x}/{y}.png'
            },
            'osmCycle': {
                'url': 'http://c.tile.thunderforest.com/cycle/{z}/{x}/{y}.png'
            },
            'osmTransport': {
                'url': 'http://c.tile.thunderforest.com/transport/{z}/{x}/{y}.png'
            },
            'osmHuman': {
                'url': 'http://tile-a.openstreetmap.fr/hot/{z}/{x}/{y}.png'
            }

 

There are some tile services which base on OSM data in https://wiki.openstreetmap.org/wiki/Tile_servers,and some of them is free:

People or organization may need apply for tokens or register from them, then are allowed to use those 3rd party tile services. The risk is we don't know how long 
the operator can manage their tile service in the future.
 
So, Keep those icons. still using the standard tile service from OSM since it is the biggest free community in the world. 
And we import more other map tile service like Google map and Here map as more options. Such as below fast POC:
 
When user click the buttun on the up-right corner in the map view, user can select their desired Map provider, no need to consider the configuration, and it will render the same location with different style of map at once.
 
 
 
 

转载于:https://www.cnblogs.com/Ironman-Jason/p/6122838.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值