Skip to content Skip to sidebar Skip to footer

How To Remove Single Marker Google Maps Api V3

i try to remove google maps marker with clearoverlays(), but i cant resolve that problem.. all the thing that i want is to remove single marker from my map. but i can only remove

Solution 1:

Ok here's the simple trick to remove single marker from google map.

var icon = "icon.png";

                var marker = new google.maps.Marker({
                position: myLatlng,
                map: map,
                title: 'I am from Nepal.',
                icon: icon,
                });

If you're a photoshop geek, set your icon size to 1px , reduce opacity to make it transparent.. It will work like a charm.. have a nice time..

Post a Comment for "How To Remove Single Marker Google Maps Api V3"