如何获得没有标签的地图? [英] How to get a map without labels?

查看:147
本文介绍了如何获得没有标签的地图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想获得一张地图(我只需要一张图片),该地图的道路网络为
,但没有标签(地图上的文字)。我尝试从Google API获取这样一张地图,并认为element:geometry
有效。

但是,例如,此连结
任何提供商没问题,例如Google,Yahoo,Mapquest ...

使用这种风格:

  style = feature:all | element:labels | visibility:off 

它会隐藏所有功能的所有标签。



http://maps.google.com/maps/api/staticmap?sensor=false&size = 512x512& center = Brooklyn& zoom = 12&style = feature:all | element:labels | visibility:off


I want to get a map (I only need a picture) that has the road network but without labels (text on the map). I tried to get such a map from Google API and thought "element:geometry" works.

But, for example, this link is still full of texts.

How can I obtain a road network map (static picture is ok) without text labels?
Any provider is ok, e.g. Google, Yahoo, Mapquest...

解决方案

Use this style:

style=feature:all|element:labels|visibility:off

it will hide all labels for all features.

http://maps.google.com/maps/api/staticmap?sensor=false&size=512x512&center=Brooklyn&zoom=12&style=feature:all|element:labels|visibility:off

这篇关于如何获得没有标签的地图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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