本文介绍了如何在默认的Google地图上添加叠加地图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从一开始就要清楚,我从来没有在我的任何程序/项目中使用Google地图,所以我对这个问题有一点了解。另外,我在SO上发现了一些关于Google地图的其他帖子,但我不确定这些是否对我的情况有帮助。



我想要做的是在已有的Google地图上添加另一张地图。新的覆盖地图将具有一定程度的透明度,以便原始的Google地图也可以看到。就像这样:



我该怎么做?我应该研究哪些技术?我是一名Java开发人员,但任何语言的任何答案都会非常有用。

解决方案

这取决于详细/大覆盖需要。如果你需要能够放大到一个非常详细的覆盖,但如果你的覆盖不需要太大,MapTiler是太棒了,我建议使用()。动态更改会非常容易。以下是Google的。



就MapTiler而言 - 如果您想要动态更改一组叠加层,则可以为所有叠加层生成拼接块,然后在它们之间轻松切换。但是,如果您要动态创建叠加层,则可能需要实施一个拼贴服务器。查看和。


Just to be clear from the start, I've never used Google maps in any of my programs/projects, so I have a little knowledge on this matter. Also, I found some other posts in SO about Google maps, but I'm not sure if any of these really helps in my situation.

What I want to do is add another map above the already existing Google map. The new overlay map would have some degree of transparency in order for the original Google map to be visible too. Something like this: http://crf.casa.ucl.ac.uk/screenRoute.aspx?s=386&d=105&w=False

How can I do this? What technologies should I look into? I'm a Java developer, but any answer in any language would be really helpful.

解决方案

It depends on how detailed/large the overlay needs to be. MapTiler is fantastic if you need to be able to zoom in to a very detailed overlay, but if your overlays don't need to be quite so huge, I'd recommend using a GGroundOverlay(GroundOverlay in V3). It would be pretty easy to change dynamically. Here is Google's demo.

As far as MapTiler goes - if you have a set of overlays you want to change dynamically, you can generate the tiles for all of the overlays, and then easily switch between them. But if you're creating the overlays dynamically, you'll probably need to implement a tile server. Check out Mapnik and TileCache.

这篇关于如何在默认的Google地图上添加叠加地图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 15:22