On Jan 11, 4:35 am, "[email protected]" <[email protected]> wrote:
> hello,
> (sorry for my bad english)
> i have got one marker (croos.gif)  in overlay  in the centre of map ,
> it alway move and keep in the center  ( it s ok)
>
> i  creat another marker (n°1) in overlay whit drag function it s ok
> but when i want to creat another marker i want then marker n°1 delete
> but when i use clearoverlay function the cross diseappear too , so i
> want to use removeoverlay function, but i dont know how it work, i
> dont find link to help me
>
> var dot = new GIcon();
> dot.image = "http://beta.poilive.com/poienfrance/cross1.gif";
> dot.iconSize = new GSize(19, 19);
> dot.iconAnchor = new GPoint(10, 10);
>
> var centerMarker=new GMarker(map.getCenter(), dot);
> map.addOverlay(centerMarker);
>
> GEvent.addListener(map, 'move', function() { centerMarker.setLatLng
> (map.getCenter()); });
>
> [.....]
>
> point = new GLatLng(gp2extrait,gp1extrait);
> marker = new GMarker(point);
> map.addOverlay(marker);
>
> i certainely do use this function
>
> var myoverlay = new Something();
> map.removeOverlay(myoverlay);

What is myoverlay?  It needs to be a reference to the overlay you want
to remove (the one you called addOverlay on).

  -- Larry

>
> thank you for help
>
> a+
> christophe
--~--~---------~--~----~------------~-------~--~----~
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