I am using the google map api and cannot get the GMap2 to
work. I see examples that say just put this in to initialize the GMap2 .
var map = new GMap2(document.getElementById("myMap"));
I get an error that says "Call to a possobly undefined method GMap2"
Anyone know about this?
I suppose that you have using the Google Maps API for Flex, and you have make the download of Maps SDK on Google Maps API - The download link can be found here: http://maps.googleapis.com/maps/flash/release/sdk.zip
A tutorial for configuration your Flex Builder can be found here: http://code.google.com/intl/en-US/apis/maps/documentation/flash/tutorial-flexbuilder.html# FlexBuilder
But, the GMap2 is a class to use in a API for Ajax, the Flex API don't have this class.
If you working with Flex, i think this tutorial can help you to use the API with Flex: http://code.google.com/p/gmaps-samples-flash/source/browse/trunk/samplecode/HelloWorld.mxm l