LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-26-2011, 01:05 PM
Kezoo Kezoo is offline
Registered User
 
Join Date: Oct 2011
Location: Netherlands
Posts: 2
Rep Power: 0
Kezoo is on a distinguished road
Crying Coordinates from database to mobile device

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.
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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




All times are GMT. The time now is 10:40 PM.