Your 'map' variable is local to your load() function.
So it's not accessible by the updateMap() function.

If you make the map variable global - same as marker and latlng then
it may work:

var marker;
var latlng;
var map

    function load() {
        map = new google.maps.Map(document.getElementById("map"), {
        center: new google.maps.LatLng(24.688002, 46.722433),
        zoom: 13,
        mapTypeId: 'roadmap'
      });

Martin.



On Dec 24, 11:54 am, Mesh3L <[email protected]> wrote:
> Thank you guys.
>
> I have made the changes according to your comments, but it's still not
> working. Nothing happens when i chose from the list.
>
> I have attached the file if you check it for me.
>
> Thank you
>
>  code.txt
> 4KViewDownload

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