My favorites
|
Sign in
gmaps-samples-flash
Sample code for the Google Maps API for Flash
Project Home
Downloads
Wiki
Issues
Source
Checkout
|
Browse
|
Changes
|
r339
Source path:
svn
/
trunk
/
samplecode
/
MapOptionsInit.mxml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?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_mappreinitialize="onMapPreinitialize(event)"
width="100%" height="100%"
key="ABQIAAAA7QUChpcnvnmXxsjC7s1fCxQGj0PqsCtxKvarsoS-iqLdqZSKfxTd7Xf-2rEc_PC9o8IsJde80Wnj4g"/>
<mx:Script>
<![CDATA[
import com.google.maps.LatLng;
import com.google.maps.Map;
import com.google.maps.MapEvent;
import com.google.maps.MapType;
import com.google.maps.MapOptions;
private function onMapPreinitialize(event:Event):void {
var opts:MapOptions = new MapOptions();
opts.zoom = 14;
opts.center = new LatLng(40.736072,-73.992062);
opts.mapType = MapType.NORMAL_MAP_TYPE;
this.map.setInitOptions(opts);
}
]]>
</mx:Script>
</mx:Application>
Show details
Hide details
Change log
r221
by pamela.fox on Oct 06, 2008
Diff
Adding MapOptionsInit.mxml
Go to:
...k/samplecode/MapOptionsInit.mxml
Project members,
sign in
to write a code review
Older revisions
All revisions of this file
File info
Size: 1105 bytes, 31 lines
View raw file
Hosted by