我正在做概念验证映射。目标是半标签,带有红色字体,没有图标。我尝试了所有内容,甚至复制了Google KML参考手册的粘贴,并在此处发布了许多示例。我想念什么?我正在尝试在Google的"我的地图"中显示地图。以及作为浏览器实用程序GMAP4的所谓数据文件。测试地图应显示宾夕法尼亚州的Google Streetmap的四个标签,以提供一名基础人物……谢谢您的任何帮助。
<?xml version="1.0" standalone="yes"?>
<kml xmlns="http://earth.google.com/kml/2.2">
<Document>
<Style id="NoIconRedTextHalfSize">
<IconStyle>
<scale>.1</scale>
<Icon>
<href>https://maps.google.com/mapfiles/kml/paddle/grn-stars.png</href>
</Icon>
</IconStyle>
<LabelStyle>
<Color>FF1400FF</Color>
<Scale>.5</Scale>
</LabelStyle>
</Style>
<Folder>
<Placemark>
<name>Hs-4-C.Sonney</name>
<styleUrl>#NoIconRedTextHalfSize</styleUrl>
<Point>
<coordinates>1,1,0</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Hs-5-B.Jozwiak</name>
<styleUrl>#NoIconRedTextHalfSize</styleUrl>
<Point>
<coordinates>1,1,0</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Hs-6-B.Roae</name>
<styleUrl>#NoIconRedTextHalfSize</styleUrl>
<Point>
<coordinates>1,1,0</coordinates>
</Point>
</Placemark>
<Placemark>
<name>Hs-7-M.Longietti</name>
<styleUrl>#NoIconRedTextHalfSize</styleUrl>
<Point>
<coordinates>1,1,0</coordinates>
</Point>
</Placemark>
</Folder>
</Document>
</kml>
kml语法包含许多标签,这些标签不受普通的Google Map(我的地图(或基于Google Map API的SOTFWARE支持的标签。非支撑标签之一是。请参阅:https://developers.google.com/maps/documentation/javascript/kmllayer#supported-elements
要制作一个没有图标的标签,请尝试制作透明图标。