0

我知道使用 Google Map API v3(MapTypeStyler选项)是可能的,但你认为它是使用 Leaflet API 吗?

问题是我有覆盖地图的文本,我需要通过调整亮度或 - 甚至更好 - 通过应用模糊效果,如本例所示:http: //www.hongkiat.com/blog/css-filter/

CSS 着色器看起来很有前途,但仅支持最新的 Chrome 浏览器

地图上的文本是模态的(用户必须与按钮交互),我可以使用 PNG 图像文件添加叠加层。我不太喜欢这种需要将不必要的文件传输给客户端的解决方案。

谢谢,

4

1 回答 1

0

Leaflet is very lightweight and simply puts references to tile images on your html page. So I see two options to change the look of the tiles:

CSS

Which indeed depends on the browser.

Custom tiles

Leaflet will display tiles from any server. You can for example pick one of the many styles served by cloudmade or make one of your own there. Or use a tool like TileMill to create (and perhaps even host) them yourself.

于 2013-02-10T23:59:21.443 回答