cybersthang / gmaps-utility-library-dev

Automatically exported from code.google.com/p/gmaps-utility-library-dev
0 stars 0 forks source link

Markerclusterer, kml file and sidebar #133

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

Sorry, not an issue but a question. I don't find where to ask it...

I use your excellent markerclusterer to improve the loading time of my maps.
I use it to show data from multiple kml file using this:

var searchUrl = 'url.kml';
GDownloadUrl(searchUrl, function(data){
      var xml = GXml.parse(data);

Ok it works fine.

Now I need to show a sidebar, with marker list and open infowindow on
mouseover event like in this exemple:
http://gmaps-utility-library.googlecode.com/svn/trunk/markerclusterer/1.0/exampl
es/speed_test_example.html

Problem: I use

GEvent.addDomListener(tit, "mouseover", function(){
        marker.openInfoWindowHtml(desc);
                });

into the loop to add an event to the html texte into sidebar (tit). It
works if the action is alert('ok!'), not with marker.openInfoWindowHtml...

I get an error into firebug on mouseover: "This Xb is not a function" into
http://maps.gstatic.com/intl/fr_ALL/mapfiles/159e/maps2.api/main.js (line 743)

Here is the page: http://picturevolution.com/index.php/test2.html

I really don't understand what happens and try different situations and
hope you can help me.
Thanks

Original issue reported on code.google.com by sebastie...@gmail.com on 31 Jul 2009 at 3:47

GoogleCodeExporter commented 8 years ago
Sorry, found a solution here:
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/8be96a7fbb9c
476a

It seems I must add marker.initialize(map);
Now it works fine. I just add a marker.hide(); to not show the marker and it's 
fine

Original comment by sebastie...@gmail.com on 31 Jul 2009 at 7:43