How can I get out LatLng a database to work in the cards?
Hello
I'm struggeling with a problem with a project of mine for several months now.
In Flash Builder, I have a Flex Mobile project with a list and when you click on, I want a map will appear.
What I try to do is, get the coordinates of a data base and transport them to a card on a mobile device.
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 is 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 place it on the next view.
On this view, I get the data in the form of {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 in a new LatLng() like this: LatLng ({data.lat}, {data.lng}), the new show at the map doen't marker and I have errors in FlashBuilder.
My approach is perhaps bad, so if you know a better way to do it I am open to him.
Can you help me solve this problem.
I would be very gratefull if you would help me.
Sincerely, Gerard Weijer
If you are in ActionScript I don't think you need braces, that she should simply be
var latLng:LatLng = new LatLng (Number (data.lat), (data.lng) Number);
(Note the castant in number)
-Tom
Tags: Flex
Similar Questions
-
How can I get out of my lap top sound bettter?
How can I get out of my lap top sound bettter?
Well, most of the portable speakers are undesirable, so buy external speakers and plug 'em.
-
Three of these applications were opened when I accepted the invitation of creative cloud of my team. Now these three applications still resemble a trial and say 'Buy now' next to them. Others say 'open '. How can I get out of the mode of trial?
Hello
Please check the help below document:
Applications creative Cloud back in test mode after an update until 2015 for CC
Kind regards
Sheena
-
original title: Hello, how can I get my icon of network connectivity added to the notification (to the left of the date) area? Thank you, NT
The icon disappeared after stopping at the wall accidentally. When I right click on the taskbar, go into the properties box and notification, network system icon is grayed out.
Thanks for your help.
Hi NT,
You can read the following article and check if it helps.
You can also consult the following articles and check.
Show all icons in the notification area (system tray)
Remove icons from the notification area (system tray)
Hope this information is useful.
-
How can I get pages for free if I already have the last update and it doesn't show up on my macbook air?
What to do if you already have?
Peter
-
How can I get my external cd drive to work on my hp ultrabook
How can I get my external cd drive to work on my hp ultrabook
Hello:
In addition to the above, you will need to also go into the BIOS and turn on legacy Mode in order to boot from another device, but the hard drive with Windows 8.
You may also need to disable secure both boot.
-
The App Store icon (which came with my iPad) is completely absent from my iPad (but not my iPhone). How can I get that back? I've already turned the camera market.
Check yourself, if you have hidden it by setting parameters > General > Restrictions > Apps install 'off' - If you have, then again ' "should get the app to reappear
-
How can I get my xbox 360 controller to work with my computer?... I can't even recognize the hardware? Im running Vista 64 bit on a quad core rig any help would be appreciated... Thank you
Hello Ghostdogaln.
How do hang you the controller? You must either use a * wired * controller, or use a wireless controller with receiver game Xbox 360 for Windows.
If you use a wireless with a Play and Charge kit controller, it will not work as long as the USB cord only actually plug into the battery for the controller itself. Paul Smith - MVP for Windows desktop experience... I crawled off NNTP - for now. Detachment Aldershot, United Kingdom. On the internet at windowsresource.net and dasmirnov.net. Please post back to let us know what works and what does not. :-)
-
How can I get my example Yahoo web pages to fit the screen of my computer?
How can I get my example Yahoo web pages to fit the screen of my computer? When I open yahoo page is longer then the screen of my computer. This is happening on all pages, when I opened.
Advisor.
Andy
original title: computer screen
Hello!
Try this:1. shoot to the top of your Internet explore2. go to the toolbar at the top of the page go to hell VIEW > ZOOM > and adjust the size of the page that will fit your window.Hope this helps,Thank youMakoi -
How can I get my msn mail account to work on my nook Tablet?
How can I get my msn mail account to work on my nook Tablet?
Hello
I suggest you according to the question in this forum and check if that helps:
http://windowslivehelp.com/forums.aspx?ProductID=15
It will be useful.
-
LAN and WLAN connections
My old wired desktop xp died, it was the first computer on my home network. My friend just got a new office and gave me an old. I have a laptop which has windows 7 and is connected wireless. It is still plugged in and works fine. How can I get my new/old office to connect to the internet? I ran to the implementation of new Internet and network connection wizards, nothing happens. When I go to internet connections, it shows that it is connected, but I can't seem to connect. Help, please!Hi ShannonStrong,
· What exactly happens when you try to connect to the network?
· You receive an error message or error code?
You can follow the steps in the Microsoft Knowledge Base article mentioned below and check.
How to troubleshoot possible causes of Internet connection problems in Windows XP
http://support.Microsoft.com/kb/314095
You can also see this article:
Networking of computers running different versions of Windows
Note: The article also applies to Windows XP
Let us know if this information useful.
-
How can I get audio on my computer to work again
How can I get audio on my computer to work again?
Most often when a device does not work, it is because the driver is damaged. Re-install a new copy should help
Remove the driver current completely and install the latest driver available. For instructions on how to do read everything to update the drivers of my partner JMH3143 http://answers.microsoft.com/en-us/windows/wiki/windows_other-hardware/updating-a-driver/a5e6345e-af9b-4099-bef0-8d22254aa1c1?tm=1436753520149 here
-
How can I get an article on Monitor 2 to open the monitor 2?
original title; Extended desktop problem. How can I get an article on Monitor 2 to open the monitor 2? Mine keep opening the monitor 1 that denies the goal to use the extended desktop.
Using extended desktop, I can get two different articles on 2 different monitors but nothing on Monitor 2 opens on the monitor 1.
How to open the file in Monitor 2?
Is Monitor 2 your primary monitor?
What is the specific program to open the file?The installation of the default monitor is the mirror mode, it's both monitors display the same thing, when you change Extended t - it still display mirrored for all programs? Initially when you open a program in extended desktop mode, the program opens on monitor 1, you must drag Monitor 2 monitor 1:
Move windows between multiple monitors
http://Windows.Microsoft.com/en-us/Windows-Vista/move-Windows-between-multiple-monitorsIf you were able to drag the program to monitor the 2 but still shows on monitor 1 m swiped in mirror mode try setting back to mirror and then return to the expanded view.
To change an extended to a mirrored display display
The following procedure works only for laptops. If you are using a desktop computer, you can change a view extended to a mirrored display by using the software provided with your video card or display driver.
1. open Windows Mobility Center by clicking the Start button, click on the Panel, clicking Mobile PC, and then click Mobility Center Windows.2. on the external display tile, click Connect display.
3. in the dialog box new display detected, click on mirror, and then click OK.
More laptops use FN + F5, FN + F7 or FN + F8 to cycle through the display modes. To determine what function keyboard shortcut, you will need to use, see the documentation that came with your laptop or go to the manufacturer's Web site.
To change a mirrored display a view extended
1. open display settings by clicking the Start button, clicking Control Panel, on appearance and customization, personalization, and then clicking display settings.
2. on the monitor tab, select the numbered icon that represents the additional monitor that you have connected.
If you connect only one additional monitor to your computer, its icon is identified by the number '2 '.
3. Select the extend the desktop on this monitor check box, and then click OK.
4. If you are prompted to keep the current settings, click Yes.
-
have hp2009m comp with windows vista, how can I get my xbox wireless remote to work on it?
Hi Alex,
You can view the following items and see if it helps.
How to connect a wireless Xbox 360 controller or headset to your computer
Demonstration: Creating an Xbox 360 in an Extender for Windows Media Center unit
You can also get in touch with technical support Xbox for the same thing.
Hope this information is useful.
-
Windows7-how can I get my photos to allow me to move the individual to the neighbourhoods, in a file, picture when they are in a thumbnail view?
XP has allowed this and then handed over to the correct order seen again in list formatThank you for visiting the Microsoft answers community.
You can organize is more manually the files in the folders - Windows 7 change is design, but if you think this is something that you want changed, please submit your suggestion on the Microsoft Connect site for your comments.
Lisa
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think.
Maybe you are looking for
-
I have to open my old HP 243 CL and I tell myself that while I'm here, I will replace the processor RM72 (with the S1g2 socket). Will be the recent/most fastest cpu ZM-87 in this system work? I have upgraded the bios and can't see anything obvious
-
Equium P300-16 t - USB Power Port
My machine is less than 4 weeks old. I recently bought a usb hub 2.0 4 generic ports for the system. When I plugged in (using the right side rear lane) I got my scanner and a USB connected. The scanner has not been turned on. I found that if I tried
-
Multimedia keys not working not
Hi, the play/pause and the previous and next on buttons my laptop Envy Touchsmart stopped working this morning. What can I do about it?
-
queue and notifying with state machine
I'm trying to implement a declarant and a queue to collect data that is running on a state machine in two separate loops. I'm new to the whole and methods notifier queue and I think I'm really close to make it work as I want. When I start the compu
-
Windows Media Player is unable to extract one or more tracks from the CD.
I also got this message "Windows Media Player is unable to extract one or more tracks from the CD" pop up in an attempt to 'Copy' the CD! I have Windows 7 and had NO problem for several weeks, ripping my music from CD sales in my MUSIC folder. I go