Any way to bring a marker to the front?

59 views
Skip to first unread message

Pan

unread,
Jan 6, 2010, 11:12:01 AM1/6/10
to KML Developer Support - Google Earth Plug-in
I have a problem where multiple markers are at the same latitude and
longitude. I'd like to be able to programmatically tell GE which one
to show as the top one. Is there any way to do this, either
straightforward or a bit of a kludge? I've already tried things like
hiding/showing the other marker and removing/adding either the desired
marker or its doppelganger.

Thanks!

Grok Lobster

unread,
Jan 6, 2010, 12:10:21 PM1/6/10
to KML Developer Support - Google Earth Plug-in
Not sure if it will work, but have you tried zIndex?

Pan

unread,
Jan 7, 2010, 11:24:27 AM1/7/10
to KML Developer Support - Google Earth Plug-in
This is for Google Earth. You're referring to zIndex in Google Maps,
right?

Grok Lobster

unread,
Jan 7, 2010, 1:57:55 PM1/7/10
to KML Developer Support - Google Earth Plug-in
zIndex is a JavaScript property so you should be able to use it on KML
elements as well but I've never tried.
> > > Thanks!- Hide quoted text -
>
> - Show quoted text -

Nymor

unread,
Jan 7, 2010, 4:32:26 PM1/7/10
to KML Developer Support - Google Earth Plug-in
z-index is purely html and within the GE plugin I don't think it
applies. Maps ... maybe .. I don't know about that ... but I don't
think it's of any use within GE.

To do what the OP needs I'm not sure how I'd go about it. GE will
display both (all) placemarks if their coords are the same and on
clicking will "star" them to allow the user to select whichever.

If it was really important as to what I displayed then I would
probably hode/show ... but you've already tried that. Not sure what to
suggest... ?

Nymor
Reply all
Reply to author
Forward
0 new messages