Google Map API KML图层对象 [英] Google Map API KML Layer object

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

问题描述

大家好,

请帮助我了解如何通过KML文件访问放置在Google地图中的标记.我想在地图上找到标记并显示其地标.

在此先感谢
G.Pavan Kumar

Hi All,

Please help me out in knowing how to access the markers placed in the google map through KML File. I want to find the markers in the map and show its place mark.

Thanks in advance
G.Pavan Kumar

推荐答案

你好

您可以使用以下代码找到标记,您必须包含google map js,jquery js.

Hello

You can find marker using below code, you have to include google map js, jquery js.

<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false">
</script>
<script src="../js/jquery-1.4.2.min.js">
</script>
<script>
    var map;
    var nav = [];


(文档). (功能(){ // 初始化地图 init();
(document).ready(function(){ //initialise a map init();


.get(" 函数(数据){ html = " ; // 在地标标记中循环
.get("kml.xml", function(data){ html = ""; //loop through placemarks tags


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

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