I have been using google maps api version 2 for quite sometime. Wanted
to use the elevation service feature so moved to version 3.Was very
happy about this feature in google. Saves me lot of effort. Thanks a
lot.But i am facing a problem using it.

>From the documents i have read it does not require a version number or
an API key to use version 3. Hope i got that rite. Application works
perfectly fine in version 2. Works fine in version 3 too.

But when i add  the below statement for ElevationService it throws up
a runtime error as Object expected what could be wrong

var elevator = new google.maps.ElevationService();

Referred the sample code given in "http://code.google.com/apis/maps/
documentation/v3/services.html" under elevation section.

can someone help please. I dont want to use other 3rd party tools for
elevation information. I have been using google map api and want to
continue in that direction.
Code Snippet:
var map = new GMap2(document.getElementById("map"));
map.removeMapType(G_HYBRID_MAP);
map.removeMapType(G_NORMAL_MAP);
map.setMapType(G_PHYSICAL_MAP);
map.setCenter(new google.maps.LatLng( GET_LATITUDE , GET_LONGITUDE ),
GET_ZOOM_VALUE );
 var elevator = new google.maps.ElevationService();



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