哪种数据源更适合Google Maps,KML或JSON?
我完全看到了JSON的好处,将轻量级的数据数组填充到我的Google Maps中(并通过模板来显示要点列表).我听说过很多有关KML的话题.
I totally see the benefits of JSON, pull over a lightweight array of data to stuff into my Google Maps (and template through to show a list of the points as well). I've heard a lot of talk about KML.
将点拉入Google Maps,JSON ||的最佳方法是KML?我主要关心的是性能,还包括可能会改进地图的功能的广度.
Which is the preferable way to pull points into Google Maps, JSON || KML? My primary concern is performance, but also breadth of features that could potentially improve the map.
我个人使用json,因为kml生成的功能不如您通过解析json创建的功能灵活.例如,您不能将悬停事件添加到kml中的面.
Personally I use json because the kml resulting features are less flexible than the features that you create from parsing json. For example, you can't add a hover event to a polygon from kml.