Ghost markers

49 views
Skip to first unread message

Mike Reumer

unread,
Sep 30, 2011, 3:56:06 PM9/30/11
to google-e...@googlegroups.com
Hello,

I've a problem with ghost markers when showing a kml file in the Google Earth API via Google Maps API version 2. See: http://tech.reumer.net/Google-Maps/Test/richard-zs6ro.html
If I use the other maptypes the ghost markers don't appear.

The ghost markers are yellow or blue and appear on the same location as the original markers. They disappear sometimes when zooming in or panning the map.

If I click on such a marker then an infowindow opens at coordinates 0,0 that it's empty.

The kml file consist an network link to a georss source: http://aprs.fi/aprsupdate.kml?units=metric&units_temp=C
This source is not my source, but of an external party.

Has anybody an idea what is causing the ghost markers to appear?
Is this caused by google maps api version 2?

Kind regards Mike


Mike Reumer

unread,
Oct 15, 2011, 5:01:39 AM10/15/11
to google-e...@googlegroups.com
Please, has anybody an idea how to solved above problem?

FrancisMeetze

unread,
Oct 15, 2011, 8:10:53 PM10/15/11
to Google Earth API
Well, the KML link you gave me was empty. I would have liked to have
seen the actual KML file. Most likely there is an issue there.

Otherwise, do me a favor and log onto: http://code.google.com/apis/ajax/playground/#geoxml_kml

Insert the following at line #9:

map.setMapType(G_SATELLITE_3D_MAP);

That will give you the Google Earth view you were looking for and
geoxml will parse that KML file. Let's see if the ghosting occurs
there. If it doesn't, let's axe your code.



On Sep 30, 12:56 pm, Mike Reumer <mikesa...@gmail.com> wrote:
> Hello,
>
> I've a problem with ghost markers when showing a kml file in the Google
> Earth API via Google Maps API version 2. See:http://tech.reumer.net/Google-Maps/Test/richard-zs6ro.html
> If I use the other maptypes the ghost markers don't appear.
>
> The ghost markers are yellow or blue and appear on the same location as the
> original markers. They disappear sometimes when zooming in or panning the
> map.
>
> If I click on such a marker then an infowindow opens at coordinates 0,0 that
> it's empty.
>
> The kml file consist an network link to a georss source:http://aprs.fi/aprsupdate.kml?units=metric&units_temp=C

Mike Reumer

unread,
Oct 16, 2011, 6:04:58 AM10/16/11
to google-e...@googlegroups.com
Hello Francis,

Thank you for answering.

Yes the kml doesn't contain much beacuse it uses network links to get contents out of an external source.

I reproduced the problem in de code playground by using the following initialize function:
function initialize() {
  if (GBrowserIsCompatible()) {
    geoXml = new GGeoXml("http://tech.reumer.net/images/aprs.kml");
    map = new GMap2(document.getElementById("map_canvas"));
    map.setCenter(new GLatLng(-30, 30), 5);
    map.setMapType(G_SATELLITE_3D_MAP);
    map.addControl(new GLargeMapControl());
    map.addControl(new GLargeMapControl());
    map.addOverlay(geoXml);
  }
}

Let me know if you could reproduce it.

Kind regards Mike

FrancisMeetze

unread,
Oct 25, 2011, 6:40:56 PM10/25/11
to Google Earth API
Since your KML is being built dynamically, it will be impossible to
debug it without a working snapshot.

You'll need to capture the actual KML feed that's building the map.
The problem is in the KML formatting and not Google Earth.

Mike Reumer

unread,
Oct 26, 2011, 2:39:00 PM10/26/11
to google-e...@googlegroups.com
How can I capture a snapshot? Do you have an tip or idea?

dinther

unread,
Oct 26, 2011, 2:52:39 PM10/26/11
to google-e...@googlegroups.com
On windows, ALT PRINTSCN copies the current window as a graphic in the clipboard. You can paste it directly into outlook, MSN or Skype or paste it into a graphics editor and save it as a file.

Mike Reumer

unread,
Oct 26, 2011, 2:54:28 PM10/26/11
to google-e...@googlegroups.com
Hello Dinther,

Not a snapshot of the screen, but a snapshot of the dynamic generated kml file used by the google earth plugin.

Regards Mike

dinther

unread,
Oct 26, 2011, 3:56:39 PM10/26/11
to google-e...@googlegroups.com
Sorry, I didn't read the entire thread. I can get to the bottom of your issue if you like but that is a consulting job.

Regards

Paul van Dinther

Mike Reumer

unread,
Oct 26, 2011, 4:02:10 PM10/26/11
to google-e...@googlegroups.com
No problem.

Thanks for the offer, but a consulting job is not an option for us.

Mike Reumer

unread,
Oct 28, 2011, 2:23:07 PM10/28/11
to google-e...@googlegroups.com
I think I've found the cause of the ghost markers.

Goto the following site where you can see the map with object too:
http://aprs.fi/

If you zoom out far then you will see polygons for specific places where a lot of activity is shown. The markers are not shown then so some kind of clustering. At some places there a less places and you will markers and polygons together.
The polygons are mayby not recognised correctly by the google earth plugin and are translated to a 'ghost' marker.

Other option is that the makers have labels and that are seperate objects in the kml file and on the map. Maybe these can also be translated to a 'ghost' marker.

Does this make sense?

Mike Reumer

unread,
Oct 29, 2011, 4:37:56 AM10/29/11
to google-e...@googlegroups.com
Hello Francis,

I've got a snapshot of the kml file. I've attached it to the message.
It's also available at http://tech.reumer.net/images/aprs2.kml

This produces in the code playground the same effect.

I hope we can now find the cause.
I'll look into it too.

Kind regards Mike
aprs2.kml

Mike Reumer

unread,
Nov 18, 2011, 2:52:52 PM11/18/11
to google-e...@googlegroups.com
Somebody delivered a simple kml to me and this has the same problem.
I've attached this file.

You can test it in the playground http://code.google.com/apis/ajax/playground/#geoxml_kml by using the following initialize function:
function initialize() {
  if (GBrowserIsCompatible()) {
    geoXml = new GGeoXml("http://tech.reumer.net/images/double_earth_markers.kml");

     map = new GMap2(document.getElementById("map_canvas"));
    map.setCenter(new GLatLng(-30, 30), 5);
    map.setMapType(G_SATELLITE_3D_MAP);
    map.addControl(new GLargeMapControl());
    map.addControl(new GLargeMapControl());
    map.addOverlay(geoXml);
    geoXml.gotoDefaultViewport(map);
  }
}

Does anybody have a clue why the ghost markers appear?
Reply all
Reply to author
Forward
0 new messages