CreateResolvedStyle Does Not Blend styleUrl and Inline Style

7 views
Skip to first unread message

Joel Odom

unread,
Aug 28, 2013, 11:13:12 AM8/28/13
to lib...@googlegroups.com
When you have KML like the KML below Google Earth resolves the style
by blending the styleUrl and the inline Style element, but
CreateResolvedStyle only pulls the inline style, disregarding the
shared style. Is this expected, or should CreateResolvedStyle work
like GE?



<kml>
<Document>
<Style id="airplane">
<IconStyle>
<Icon>
<href>http://osm-kml.appspot.com/static/airplane.png</href>
</Icon>
</IconStyle>
</Style>
<Placemark>
<styleUrl>airplane</styleUrl>
<Style>
<IconStyle>
<scale>2.75</scale>
<heading>333</heading>
</IconStyle>
</Style>
<Point>...
... move kml follows ...


--
http://www.falconview.org/

Joel Odom

unread,
Aug 28, 2013, 1:29:04 PM8/28/13
to lib...@googlegroups.com
Disregard that message. I left the hash off of "airplane." Should be
<styleUrl>#airplane... GE still resolves it without the hash.
--
http://www.falconview.org/
Reply all
Reply to author
Forward
0 new messages