嗯,我通過閱讀,並試圖找出解決方案,但不能標...geoxml3並沒有發揮作用
我跟着從geoxmlv3說明:http://code.google.com/p/geoxml3/wiki/Usage
這裏是從文檔報價:
<script type="text/javascript">
var myParser = new geoXML3.parser({afterParse: useTheData});
myParser.parse('my_geodata.kml');
function useTheData(doc) {
// Geodata handling goes here, using JSON properties of the doc object
for (var i = 0; i < doc.placemarks.length; i++) {
doSomething;
}
};
</script>
根據該文件,在doc.placemarks應該是工作和KML文件返回地標JSON數組,不幸的是這「文檔」根本不存在(不確定),任何想法?
[geoxml-V3](http://code.google.com/p/geoxml-v3/)和[geoxml3](http://code.google.com/p/geoxml3/ )是兩個不同的東西,看起來像你在問geoxml3。 – geocodezip