My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2008 Google Inc.
Licensed under the Apache License, Version 2.0:
http://www.apache.org/licenses/LICENSE-2.0
-->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<maps:Map xmlns:maps="com.google.maps.*" id="map" mapevent_mapready="onMapReady(event)"
width="100%" height="100%" sensor="false" key="your_api_key"/>
<mx:Script>
<![CDATA[

import com.google.maps.LatLng;
import com.google.maps.Map;
import com.google.maps.MapEvent;
import com.google.maps.MapType;

private function onMapReady(event:Event):void {
this.map.setCenter(new LatLng(40.736072,-73.992062), 14, MapType.NORMAL_MAP_TYPE);
}
]]>
</mx:Script>
</mx:Application>

Change log

r341 by t...@google.com on Sep 21, 2010   Diff
Update the code samples to not include a
valid API key
Go to: 
Project members, sign in to write a code review

Older revisions

r340 by t...@google.com on Sep 21, 2010   Diff
Add sensor parameter to code samples
r199 by pamela.fox on Oct 2, 2008   Diff
Updating samples for 1.7
r2 by pamela.fox on May 13, 2008   Diff
Adding first draft of examples for the
Maps API for Flash
All revisions of this file

File info

Size: 782 bytes, 23 lines

File properties

svn:executable
*
Powered by Google Project Hosting