Hi,
Just a simple question:
This is my kml file:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="
http://www.opengis.net/kml/2.2" xmlns:gx="http://
www.google.com/kml/ext/2.2" xmlns:kml="
http://www.opengis.net/kml/2.2"
xmlns:atom="
http://www.w3.org/2005/Atom">
<Document>
<name>_saved.kml</name>
<Style id="sm_Polygon_Style">
<PolyStyle>
<fill>0</fill>
</PolyStyle>
</Style>
<Placemark>
<name>name</name>
<description>desc</description>
<styleUrl>#sm_Polygon_Style</styleUrl>
<Polygon>
<outerBoundaryIs>
<LinearRing>
<coordinates>
41.99069023132341,45.02331056301949,0
42.01446533203141,45.01190407514222,0
42.04939842224137,45.02221855083926,0
42.02596664428727,45.03629177860115,0
42.05248832702653,45.04387290222881,0
42.00493812561052,45.05230193214075,0
41.99069023132341,45.02331056301949,0 </coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
</Placemark>
</Document>
</kml>
It's OK, but after that I load, edit polygon in Google Earth and save
it, I get the next:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="
http://www.opengis.net/kml/2.2" xmlns:gx="http://
www.google.com/kml/ext/2.2" xmlns:kml="
http://www.opengis.net/kml/2.2"
xmlns:atom="
http://www.w3.org/2005/Atom">
<Document>
<name>_saved_GE.kml</name>
<Style id="sn_ylw-pushpin">
<PolyStyle>
<fill>0</fill>
</PolyStyle>
</Style>
<Placemark>
<name>name</name>
<description>desc</description>
<styleUrl>#sn_ylw-pushpin</styleUrl>
<Polygon>
<outerBoundaryIs>
<LinearRing>
<coordinates>
41.99069023132341,45.02331056301949,0
42.01446533203141,45.01190407514222,0
42.04939842224137,45.02221855083926,0
42.02596664428727,45.03629177860115,0
42.05248832702653,45.04387290222881,0
42.00551020015333,45.03500403154767,0
41.99069023132341,45.02331056301949,0 </coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
</Placemark>
</Document>
</kml>
WHY is my style changing from "sm_Polygon_Style" to "sn_ylw-
pushpin"???
How to avoid that?
Please, help!
Thanks,
Vad