Google地图覆盖图 [英] Google Maps Overlays

查看:113
本文介绍了Google地图覆盖图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找到能够根据KML和/或KMZ数据生成Google地图叠加层的内容,最好是F / OSS。 我们有我们正在研究的一个活动网站去年需要容纳约16,000个地点标记,今年可能再次至少有这么多。去年,完成该网站的公司只是将KML数据直接提供给gMaps API,并让它放置所有标记客户端。很显然,这成为了一场性能噩梦,并且倾向于让旧版浏览器冻结(或者至少一次冻结数分钟)。



理想情况下,此服务器端脚本将采用KML,地图的纬度/经度中心和地图缩放级别,并将所有可见的地点标记合适地合并到单个GIF或PNG覆盖图中。

任何指导或建议,将不胜感激。



更新10/8/2008 - 我在这里遇到的大部分信息和其他地方似乎表明,减少地图上点的数量是要走的路(即从较高的高度/缩放级别观看时使用一个标记来表示几个点)。虽然在某些情况下这可能是一种好方法,但在这里不起作用。我们正在寻找美国地图上有数千个标记的视觉影响。我探索过的一个选项是一种名为 PushPin 的服务,当它被提供(大概)KML将创建时,服务器侧面是一个叠加层,它将所有可见点(基于中心纬度/经度和缩放级别)渲染到单个图像上,因此,我们将所有这些标记合并到单个图像服务器中,而不是执行数千个DOM操作客户端并在客户端执行单个DOM操作。 PushPin服务非常灵活,如果不是相关的成本,它肯定会工作。我们真的在寻找一些F / OSS,我们可以运行服务器端来自己生成覆盖。

您可能想要查看诸如 Geoserver Mapserver 。他们是谷歌地图克隆,还有更多。



您可以生成您喜欢的叠加层,Geoserver(我认为mapserver也可以)可以为您提供KML,PDF,PNG和其他输出以混合您的地图,或者你可以自己生成整个地图,但这需要时间。


I'm trying to find something, preferably F/OSS, that can generate a Google Maps overlay from KML and/or KMZ data.

We've got an event site we're working on that needed to accommodate ~16,000 place markers last year and will likely have at least that many again this year. Last year, the company that had done the site just fed the KML data directly to the gMaps API and let it place all of the markers client side. Obviously, that became a performance nightmare and tended to make older browsers "freeze" (or at least appear frozen for several minutes at a time).

Ideally this server side script would take the KML, the map's lat/lon center, and the map zoom level and appropriately merge all of the visible place markers into a single GIF or PNG overlay.

Any guidance or recommendations on this would be greatly appreciated.

UPDATE 10/8/2008 - Most of the information I've come across here and other places would seem to indicate that lessening the number of points on the map is the way to go (i.e. using one marker to represent several when viewing from a higher altitude/zoom level). While that's probably a good approach in some cases, it won't work here. We're looking for the visual impact of a US map with many thousand markers on it. One option I've explored is a service called PushPin, which when fed (presumably) KML will create, server side, an overlay that has all of the visible points (based on center lat/lon and zoom level) rendered onto a single image, so instead of performing several thousand DOM manipulations client side, we merge all of those markers into a single image server side and do a single DOM manipulation on the client end. The PushPin service is really slick and would definitely work if not for the associated costs. We're really looking for something F/OSS that we could run server side to generate that overlay ourselves.

解决方案

You may want to look into something like Geoserver or Mapserver. They are Google map clones, and a lot more.

You could generate an overlay that you like, and Geoserver(I think mapserver does as well) can give you KML, PDF, png, and other output to mix your maps, or you could generate the whole map by yourself, but that takes time.

这篇关于Google地图覆盖图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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