Try this marker.setMap(null)
Bye,
Federico.

2010/7/26 Terry <[email protected]>

> I'm doing a search function whereby when i search for an area in my
> campus, a maker shows up to indicate where is the location that i have
> search for. After that, i would click on the marker and there would be
> an overlay image that comes out. but my marker showing the location is
> still there. I  want to remove it. how do i do it??
>
> Here is my coding..
>
> if( usersearch.toLowerCase() == "r101")
> {
> var R101 = new google.maps.LatLng(1.3785380404984335,
> 103.84895819245145) ;
> var marker = new google.maps.Marker({position: R101,map:
> map,title:"R101"});
> google.maps.event.addListener(marker, 'click', function()
> {overlayLocation();});
>
> }
> i would like to remove the marker after i have clicked on it and the
> overlay image shows up without the marker.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to