KML line color different in Maps V3, Google Earth

199 views
Skip to first unread message

John Malpas

unread,
Jun 14, 2011, 12:41:46 AM6/14/11
to Google Maps JavaScript API v3
Hello,

I am learning KML. I have a small test file
http://www.calflora.org/kml/sg3.kml

which displays the way I want it to in Google Earth
(lines are yellow), but in Maps V3 the lines are
blue and impossible to see against the Satellite
background.

Would there be some other way to specify
line color in KML that applies to both Google Earth
and Maps V3?

Thank you

Chris Broadfoot

unread,
Jun 14, 2011, 1:57:56 AM6/14/11
to google-map...@googlegroups.com
Does this help?


Chris


--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.




--
http://twitter.com/broady

John Malpas

unread,
Jun 19, 2011, 8:29:10 AM6/19/11
to Google Maps JavaScript API v3
Chris,

Yes that helps. What I am finding, though, is that
styles don't work the same in Maps and Earth, and
I am ending up writing different styles depending
on whether the KML is intended for Maps or Earth.
One example is the width of a polygon outline.
In Maps, if the width is 3, it will display as 3
no matter whether there is a polygon fill color or not.
In Earth, if there is a fill color, the displayed width
of a polygon outline apparently depends on the zoom.
Practically, the same small polygon with outline and
fill color, zoomed way out, will be visible in Maps,
and almost impossible to see in Earth.

On Jun 13, 10:57 pm, Chris Broadfoot <c...@google.com> wrote:
> Does this help?
>
> http://code.google.com/apis/kml/documentation/kmlreference.html#lines...

Rossko

unread,
Jun 19, 2011, 9:16:59 AM6/19/11
to Google Maps JavaScript API v3
> Practically, the same small polygon with outline and
> fill color, zoomed way out, will be visible in Maps,
> and almost impossible to see in Earth.

That seems reasonable. Earth attempts to provide a 'realistic' view,
Maps are by definition symbolic representations.
Reply all
Reply to author
Forward
0 new messages