【发布时间】:2013-10-31 16:58:47
【问题描述】:
我正在使用我已构建的应用构建 KML 文件。现在我已经很好地在地图上绘制了一个线串。但是,现在我想在同一个 KML 文件中添加一些地标。尝试执行此操作时,它将显示线串或地标,但不会同时显示两者。
如何在 KML 文件中执行此操作?
我目前使用的:
<?xml version="1.0" encoding="UTF-8"?>
<kml xsi:schemaLocation="http://earth.google.com/kml/2.1 http://earth.google.com/kml2.1.xsd" xmlns="http://earth.google.com/kml/2.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Placemark>
<name>My Name</name>
<Style>
<LineStyle>
<color>FF0000FF</color>
<width>3.0</width>
</LineStyle>
</Style>
<LineString>
<extrude>false</extrude>
<tessellate>true</tessellate>
<altitudeMode>clampToGround</altitudeMode>
<coordinates>A Ton of coordinates go here</coordinates>
</LineString>
</Placemark>
</kml>
【问题讨论】:
标签: xml google-maps kml