> i made some mistakes??

uh, yes. you copied the entire code.

all you needed to do (I think) was to swap out the showMap function.

so if you go back to what you had before, just delete this:

function showMap(latLong, zoom){
      var options = {
        zoom: zoom,
        center: latLong,
        mapTypeId: google.maps.MapTypeId.ROADMAP
      };
      var map = new google.maps.Map(document.getElementById("map"),
options);
      var marker = new google.maps.Marker({
          position: latLong,
          map: map,
          title:"Your location"
      });
    }

and replace it with this:

function showMap(latLong, zoom){
      map.setCenter(latLong, zoom);
}


then I believe it should work.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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