Hello,

I'm developing a flex AIR application with google maps integration. I
need the long and lat, but also the altitude. So I want to use the
elevation service of google maps.

I included map_flex_1_19.swc in the libs directory and can do an
address search succesfully, but the elevation doesn't seem to be
working.

This is a piece of my code:
...
latitude = marker.getLatLng().lat();
longitude = marker.getLatLng().lng();
...
var positionalRequest:Array = new Array();
positionalRequest.push([latitude, longitude]);
elevator = new Elevation();
elevator.addEventListener(ElevationEvent.ELEVATION_SUCCESS,
onElevation);
elevator.loadElevationForLocations(positionalRequest);

but on this last line, I get this error:

TypeError: Error #1006: lat is not a function.
        at com.google.maps::LatLng$/fromObject()
        at com.google.maps.wrappers::Wrapper/wrapLatLng()
        at com.google.maps.wrappers::Wrapper/wrapLatLngArray()
        at com.google.maps.wrappers::IElevationWrapper/
loadElevationForLocations()

Any ideas what's going wrong? It looks like the Elevation service
within the Flex API is not documented yet ...

Thanks,
Frank

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" 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-for-flash?hl=en.

Reply via email to