I am sorry i posted in the wrong grp....however if some1 knows the
solution to my problem feel free to help me out.
I have now posted this issue in the correct grp.
Apologies...

On May 20, 3:46 pm, ripunjaya <[email protected]> wrote:
> Hello,
> I have a set of blue colored markers being displayed on the map. What
> i want to do is that when i right click on any particular marker it
> should remove 'that particular marker' and display the address of the
> marker in an alert window which i have passed in my function
> createMarkerBlue(point, address)
>
> My problem is that on right click on any particular marker it removes
> that marker but it displays the address of all the markers in alert
> window. I am also storing the markers in a global array. I am using
> Firefox 3.0 and the OS is XP.
>
> My javascript Snippet is as follows:
>
> var BlueMarkersArray = [];  //global
> ..........
> ..........
> createMarkerBlue: function(point, address) {
>       //create a marker and add using map.addOverlay(marker)
>      // Also add that marker in the global array using
> BlueMarkersArray.push(marker)
>
> //problem starts from here
>   GEvent.addListener(map, 'singlerightclick', function(a, b, marker,
> addressDetail) {
>    if (marker) {
>                         if (marker instanceof GMarker) {
>                             map.removeOverlay(marker);
>                             alert(addressDetail); }
>
>                         else { alert("map right click"); }
>                       }
>                 });
>
> Kindly let me know where I am going wrong. Also let me know that once
> i remove that marker how do i update my global array of this change.
> I thought that it would make the other person understand my problem
> more clearly if i put a part of the code.
> Waiting URGENTLY for your reply
> Thanks
> ripunjaya
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" 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-for-flash?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to