> But it's leads to error :
> GMap2 is not defined
> var map = new GMap2(document.getElementById('map'));

You are jumbling up different examples.  Stick to just one to begin
with.  The error is due to trying to use a v2 API method without
loading the v2 API.

Start again, here
   http://code.google.com/apis/maps/documentation/javascript/tutorial.html
(if you want to use v3 API)

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