Thanks you very much Shaun

I will try your advice

Regards

Taufik



2011/4/4, Shaun <[email protected]>:
> Hi Taufik,
>
> Check out the basic examples in the documentation:
> http://gmaps-samples-flash.googlecode.com/svn/trunk/examples/MarkerSimple.html
> Source here:
> http://code.google.com/p/gmaps-samples-flash/source/browse/trunk/samplecode/MarkerSimple.mxml
>
> if you want to set the options on the map through code in Flex you can check
> out the methods and options on the Map object (setZoom setCenter etc.)
> http://code.google.com/apis/maps/documentation/flash/reference.html
> if you want the user to have controls check out the controls package on the
> page above to use these you'd do:
> map.addControl(new NavigationControl());
>
> for the marker to do something when you click it you need to add a listener
> to it so from the sample you'd do
>
> var markerA:Marker = new Marker(
>             new LatLng(48.858842, 2.346997),
>             new MarkerOptions({
>                 strokeStyle: new StrokeStyle({color: 0x987654}),
>                 fillStyle: new FillStyle({color: 0x223344, alpha: 0.8}),
>                 radius: 12,
>                 hasShadow: true
>             })
>         ); markerA.addEventListener(MapMouseEvent.CLICK,
> function(event:MapMouseEvent):void { Alert.show(event.latLng.toString());
> navigateToUrl(new URLRequest('www.google.com')); });
> map.addOverlay(markerA);
> Shaun
>
> --
> 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.
>
>

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