[英]parse KML in Google Web Toolkit
I have a kml file which I want to present on a map. 我有一个想在地图上显示的kml文件。 I'm using Google Maps v3 for GWT.
我正在使用GWT的Google Maps v3。 However, I've read that the kml file should be on a public server.I've searched for methods that can use local kml files, but all of them regard Javascript, not java.
但是,我已经读过kml文件应该在公共服务器上。我在搜索可以使用本地kml文件的方法,但是它们都使用Javascript,而不是Java。
Is there a way to use local KML files in Google Web Toolkit? 有没有一种方法可以在Google Web Toolkit中使用本地KML文件? Should I use an XML parser instead and then try to work on the results?
我应该改为使用XML解析器,然后尝试处理结果吗?
I managed to present my kml file on my map, usinh geoxml3 JS. 我设法在我的地图usinh geoxml3 JS上显示了kml文件。 I call JS functions from my GWT project and I use JS to present my kml on the map.
我从GWT项目中调用JS函数,并使用JS在地图上显示我的kml。 However, I still haven't find a way to remove the layers from my map...!
但是,我仍然找不到从地图上删除图层的方法...!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.