
Welcome Guest
|
#1
|
|||
|
|||
I'm trying to load coordinates (longitude/latitude) to a mobile device in to a map so it will show a marker in that map. I'm stuck now for 2 months now… so I really need ![]() This is my sample code : protected function onMapReady(event:MapEvent):void { map.setCenter(new LatLng(53.207208,5.913611), 14, MapType.NORMAL_MAP_TYPE); var markerA:Marker = new Marker( new LatLng(53.207208,5.913611) ); map.addOverlay(markerA); map.addControl(new ZoomControl()); map.addControl(new PositionControl()); map.addControl(new MapTypeControl()); startGPS(); } I get my lat and lng from the database and push it to the next view. On this view i get the data as {data.lat} and {data.lng}. If i put this in a textfield it works: <s:Label y="100" left="10" right="10" text="{data.lat},{data.lng}"/> But if i try to put it in a new LatLng() like this: new LatLng({data.lat},{data.lng}), the marker doen't show in the map and i have errors in FlashBuilder. Maybe my approach is wrong, so if you know a better way to do it i am open to it. Can you help me to solve this problem. |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The News From Adobe on the Future of Flash Platform | FlashMove | Chit Chat Lobby | 0 | 11-10-2011 09:55 AM |
| New Native Text Render in mobile device solution for Actionscript | FlashMove | AIR |
0 | 09-30-2011 04:46 PM |
| Device Capabilities Database | FrozenMedia | All Things Apple |
19 | 03-09-2011 07:39 AM |
| Flash Application development. | misospimr | All Things Apple |
10 | 11-03-2003 09:28 AM |
| Mobile Device Apps | dv8 | Members Cafe |
1 | 08-23-2002 08:11 AM |



I'm trying to load coordinates (longitude/latitude) to a mobile device in to a map so it will show a marker in that map. I'm stuck now for 2 months now… so I really need 

