Hi all, As much as I love to spend upwards of 4hrs+ figuring out
Google Maps Api, ive hit a bit of a notch and need some help, time is
counting down.

This is the first map ive built.
You can check this map out here : 
http://www.scratch22.net/agfg/Site/testMap.html

I have a bunch of 'Free listings' that get placed onto a map (ie the
coloured dots).

I have a Mouseover event that displays the listings name. The problem
is when i drag the map around the listings name stays in the position
it is initailly loaded to?? If that makes sence, take a look below.

//-------- Free Listing Functionality --------
$(fmarkers).each(function(i,fmarker){
        GEvent.addListener(fmarker[0], "mouseover", function(){
          $('<h2 class="sinfo">'+fmarker[1]+'</h2>').remove().appendTo
('#map').fadeIn(200);
          var markOffset = map.fromLatLngToDivPixel(fmarker[0].getPoint());

          var xa = markOffset.x + 13;
          var ya = markOffset.y;


        var cssmsg = {
               'top':ya,
               'left':xa
        }

        $(".sinfo")
                .css(cssmsg)
                .show("drop", { direction:"down" });

        })

        GEvent.addListener(fmarker[0], "mouseout", function(){
                                                                
//alert(fmarker[1]);
                                                                
$('.sinfo').remove();
        });
});


SO what I need is to update
var markOffset = map.fromLatLngToDivPixel(fmarker[0].getPoint()); when
the map is dragged around, Im guessing i need to add another listener
inside this listener?? Im just not sure what i need to listen to or
whether theres another GEvent or whatever.

Any help would be much appreciated. I have read the discussion post
tems briefly, If ive left something out please shout out, this Group
rocks for us beginners.

Cheers :)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to