Archive for the ‘API’ Category

Using Google Maps API for Flash

Friday, February 26th, 2010

Requirement

1. Google Maps API for Flash : API reference
2. Flex or Flash

Basic : Latitudes and Longitudes (위도와 경도)

var position:LatLng = new LatLng(LatitudeNum, myLongitudeNum);

Understanding 3D camera

test file
related value type : com.google.maps.geom.Attitude
constructor : Attitude(yaw:Number, pitch:Number, roll:Number)

original resource : code.google
original resource : code.google

Useful Function of Map Class

getLatLngBounds(): LatLngBounds

Returns the the visible rectangular region of the map view in geographical coordinates.
This is a proper function to use query sentences in php for searching database.

Error note
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.google.maps::MapType$/get DEFAULT_MAP_TYPES()

>> I think if I want to access MapType, I should trigger MapEvent before use.

Class Notice : MapOption

MapOptions specifies a set of parameters for initialization of the map. Please note that there is a very specific time when you should use MapOptions and that is whilst handling a MapEvent.MAP_PREINITIALIZE event.