Hi!

I'm having a serious problem in here.

I'm migrating from V2 to V3 and using this example code so i can see
an overlay removal taking place



var geocoder;
  var map;
  var point;

  function initialize() {
    geocoder = new google.maps.Geocoder();
    var latlng = new google.maps.LatLng(-34.397, 150.644);
    var myOptions = {
      zoom: 8,
      center: latlng,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    }
    map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);
    this.point = new google.maps.Marker({
        position: latlng,
        map: map,
        title:"Hello World!"
    });
  }

  function clear() {
        this.point.setMap(null);
  }


the problem is that the script doesn't remove the marker at ALL!!!! I
really don't know what i'm doing wrong....

-- 
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