Google maps 谷歌地图KML中图标旁边的显示标签
我将KML与谷歌地图API结合使用。KML用于在州际公路上显示里程标记(参见屏幕截图): KML的一个片段:Google maps 谷歌地图KML中图标旁边的显示标签,google-maps,google-maps-api-3,Google Maps,Google Maps Api 3,我将KML与谷歌地图API结合使用。KML用于在州际公路上显示里程标记(参见屏幕截图): KML的一个片段: <?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <Document> <Style id="randomLabelColor"> <LabelStyle>
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<Style id="randomLabelColor">
<LabelStyle>
<color>ff0000cc</color>
<colorMode>random</colorMode>
<scale>1.5</scale>
</LabelStyle>
</Style>
<Placemark>
<name>17</name>
<styleUrl>#randomLabelColor</styleUrl>
<description>I-684 MM NORTHBOUND: 17</description>
<Style>
<IconStyle>
<Icon>
<href>http://www.xxxx.com/images/mapicons/milemarker.png</href>
</Icon>
</IconStyle>
</Style>
<Point>
<coordinates>-73.67661,41.25393</coordinates>
</Point>
</Placemark>
</Document>
</kml>
ff0000cc
随机的
1.5
17
#随机标签颜色
I-684毫米北行:17
http://www.xxxx.com/images/mapicons/milemarker.png
-73.67661,41.25393
我意识到单击里程标记图标将显示一个标注,其中包含名称和说明。但是有可能在地图上图标旁边画一个标签吗?我想把数字英里标记放在地图上(例如17)
或者我需要使用javascript和创建标记来代替KML?我一直在寻找同一个问题的答案。浏览谷歌地图API“KML和GeoRSS层”指南时,我注意到
我一直在寻找同一个问题的答案。浏览谷歌地图API“KML和GeoRSS层”指南时,我注意到