Add longitude and latitude to a map manually from another page
Ok, so I am very confused at this point. I am making an application in which I am sending coordinates over a page and into a string list, however, the maps "center" cannot be a string so I will need help with this.
Here is my code so far:
protected override void OnNavigatedTo(NavigationEventArgs e)
this.navigationHelper.OnNavigatedTo(e);
var list = e.Parameter as List<string>;
Data_List.ItemsSource = list;
Data_List.SelectedIndex = 0;
Artist_Text.Text = Data_List.SelectedItem.ToString();
Data_List.SelectedIndex = 1;
Venue_Text.Text = Data_List.SelectedItem.ToString();
Data_List.SelectedIndex = 2;
Region_Text.Text = Data_List.SelectedItem.ToString();
Data_List.SelectedIndex = 3;
Date_Text.Text = Data_List.SelectedItem.ToString();
Data_List.SelectedIndex = 4;
Ticket_Text.Text = Data_List.SelectedItem.ToString();
Data_List.SelectedIndex = 5;
TicketStat_Text.Text = Data_List.SelectedItem.ToString();
Data_List.SelectedIndex = 6;
VenueMap.Center = Data_List.SelectedItem.ToString();
Any help is appreciated, Thanks in advance!
Zack Bowling
Hi ZackTheNever,
Since a string can't be converted to a
Geopoint, so we can't specify a string value for the
Center property unless we use data binding.
For more information, please try to refer to:
https://msdn.microsoft.com/en-us/library/windows/apps/xaml/dn642089.aspx .
As a workaround we can do it as the following:
For example your coordinate has been sent to the page in a string like this: "45.08,-45.08", then we can convert the string to a
Geopoint and add it to the
Center property.
string test = Data_List.SelectedItem.ToString();
var mytest = test.Split(',');
Geopoint MyGeopoint=new Geopoint(new BasicGeoposition()
Latitude =Convert.ToDouble(mytest[0]),
Longitude = Convert.ToDouble(mytest[1])
VenueMap.Center = MyGeopoint;
Best Regards,
Amy Peng
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Similar Messages
-
Hello every one,
In My requirement i am having some regions with longitude and latitude in one SharePoint list. in another SharePoint list i am having the country values with longitude and latitude and region as look up field. I want to display all the region
markers in Google maps. on click of any region marker i want to zoom in the map to region level and i need to display all the country markers in Google maps under the region. can any body help me on this requirement.
Thanks in advance,
Venu.Not sure about Google Maps but this is fairly easy to do with Bing Maps. I've used Bing Maps with SharePoint lists fairly regularly. Here are some blog posts:
http://blogs.bing.com/maps/2013/03/26/connecting-a-sharepoint-list-to-bing-maps/
http://blogs.bing.com/maps/2013/03/07/geocoding-a-sharepoint-list-item/
Once you have your sharepoint list connected to Bing Maps you can easily filter the list data based on the selected country if you have a country column in your list. If you want to take things a bit further an create a much cooler user experience you can
also use the Bing Maps GeoData API to get the country boundaries and show them on the map as polygons. These could be color coded based on some metric, or set up as the clickable area on the map rather than a pushpin. Here is a blog post on how to use the
GeoData API with the JavaScript Bing Maps control:
http://blogs.bing.com/maps/2013/06/25/retrieving-boundaries-from-the-bing-spatial-data-services-preview/
http://rbrundritt.wordpress.com -
Adding longitude and latitude?
Is there a way to add longitude and latitude to the metadata in Lightroom 1.2? I have the coordinates from Google Earth and now would like to add that to the photos' metadata.
Even better would of course be if it's possible to link a location to GPS coordinates, but I doubt that is possible atm.
Currently I'm thinking of first exporting photos, then adding location coordinates through Picasa and then uploading to Smugmug and Flickr. But I would like to keep that data in Lightroom as well.
Thanks!Try the free software below. Drag selected images straight from Lightroom (or the desktop or anywhere else) and drop them on Geotagger, and Geotagger adds the coordinates of the center of the current Google Earth view to the images.
Geotagger
If the GPS data doesn't show up in Lightroom after you drag, you may have to choose the Metadata > Read Metadata from File command, since the modification is done outside of Lightroom.
There's also good info in
this article, including info about Lightroom's built-in link to Google Maps when you click the GPS coordinates. -
Longitude and Latitude to search by zip
I found the formula that calculates distance with zip codes.
Where do I get
the 2nd long and lat for the formula? Do I add the distance
(25 miles) to
both long and lat to get the 2nd set of variables? Or do I
use the base long
and lat add and subtract to get the 2 sets?
Has anyone done a search using zip codes to determine
everything within a
specific range (miles / kilometers)?
And when I get the result of the formula, how does it apply
to getting a
range of zip codes? And how to I query using the result.
Thanks
Wally Kolcz
MyNextPet.org
Founder / Developer
586.871.4126Took a lot of tweeting and work, but I got it to finally
work, Thank you so
much!
I had to edit the cfc to work (the SQRT function was spelled
out SQUARE and
gave me fits) and I had to capture and convert a whole new
set of zip codes,
longitudes and latitudes and convert them into the radiuses.
But all in all
it finally worked. The database on the example is written for
MS SQL and I
am using MySQL. Each enough to do. All I had to do is take
the text file,
add headers to the data, save it as a CSV, take it using
CFhttp and loop it
into the MYSQL database while converting the longitude and
latitude into
'rlongitude' and 'rlatitude' which the CFC requires to make
it work.
Thanks again Ian. I still want to add you to my site with a
linkback if you
want it.
If anyone wants the modified CFC, application.cfm, and a
MYSQL script for
the zipcodes of the US (and beyond). Let me know
wkolcz (at) mynextpet (dot) org -
Finding longitude and latitude for a given location
Hi
I would like to find Longitude and Latitude for a given address.
Is there any Oracle spatial function available for that?
PaulOracle does offer built-in geocoding functions, but you would need to purchase data from a POI vendor or create your own data to geocode against. Oracle takes care of parsing human-readable addresses but needs reference data sets to do lookups against in order to return the latitude and longitude amongst other things back to the caller.
You can get sample data from OTN or possible an Oracle Partner like NAVTEQ to try this out. -
Get the longitude and latitude of a city
Good afternoon.
Does anyone know a routine for java, putting entry as a city, get the longitude and latitude of this city?
For example:
ObtainLatitudeLongitude(Paris) ----> 48.856667000000002 , 2.35098699999999991000 of world's largest cities with longitudes and latitudes:
http://world-gazetteer.com/wg.php?x=&men=gcis&lng=en&des=wg&srt=npan&col=abcdefghinoq&msz=1500&pt=c&va=x
(good luck processing Arabic cities...) -
Setting GPS IPTC Longitude and Latitude During Import
Hi,
Is it possible to set the longitude and latitude (GPS coordinates in the respective IPTC fields) during insert and have the info automatically being written back into the original image?
Thanks,
DraellmeHi
No, unfortunately not. Aperture can't write the GPS data into the master files. You could use a software like HoudahGeo to do that.
Regards, Michael -
hi, have a iphone/macbook itunes prob. i connected my phone to mac to add songs, and it wiped 99% of music from my phone. on the mac it still lists the songs on my phone but they are greyed out. can anyone help? very frustrated and want my music back.
I am having the same problem. I have just tried this. Unplug iphone > open itunes > delete all music from itunes library > close itunes > re-open itunes > add music from original folder > plug in iphone > select songs > press sync > unplug iphone using eject button onscreen > checked phone .... still nothing in music folder on phone. On itunes the "On this iphone" tab the songs remain there but greyed out.
-
i install all ADD-ONS and i want to remove it from my browses to be back as standard firefox browses i try to delete the program and re download it but it's return with all ONS please help
http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes
-
Is there any way to download these files manually from another source? The download from boot camp keeps stopping at around 25% and then produces the error "Can't download Windows Support Software because of a network problem". Thx!
No. This issue is dicussed here frequently. The only option is to be patient and try often. Search this forum for other posts about this issue.
-
hi, i am trying to open and view a report that comes from another server with different odbc connection
i created a crystal report for a mysql database on my machine and everything works great
but we have other reports that come from other machines with different odbc connection
and this its not working when opens the report asks for credentials
and i cannot use the remote ip for these reports that come from other machine
question
if i cannot connect to remote ip to open the report
for each report i have to create a database the report database on my machine and then open the report ?
or there is some other way to open the report ?
i am using visual studio 2013 and mysql and
<add key="MYSQLODBCDRIVER" value="{MySQL ODBC 5.3 UNICODE Driver}"/>
thanksshort
i have a report that it was created on another server with a specific dsn
now i am trying to open the report on my machine
the database from the other server does not exist on my machine
the server machine where the report was created the ip its not accessible
question ?
can i open the report on my machine or its impossible ?
thanks -
Linking to a specific panel from another page and from higher up on same page Spry-UI-1.7
Hi all,
I am using Spry-UI-1.7 for a 4 tab tabbed panel on the bottom of my home page. I'd like to link to the second tab from another page and also from the top of the home page.
I previously used method: http://foundationphp.com/tutorials/spry_url_utils.php and it worked great.
Now, with the Spry-UI-1.7 Tabbed Panel "widget", that method isn't working.
I've reviewed the code from the samples page: http://labs.adobe.com/technologies/spry/samples/tabbedpanels/tabbed_panel_sample.htm
but cannot figure out what I am doing wrong. It shows the following code for linking from another page:
<a href="#" onclick="TabbedPanels2.showPanel(1); return false;">Tab 2</a>
I tried this 'as is' and it didn't work.
I tried it with index.html in place of the # and it didn't work.
(e.g. <a href="index.html" onclick="TabbedPanels2.showPanel(1); return false;">Tab 2</a> )
What am I missing here?
(I have the tabbed panel on "index.html" and want to link from "maps.html" and from the top of "index.html"
Thanks for any help for this spry newbie! (read: I need it spelled out like I was a 6 yr. oldThis works
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
<script type="text/javascript" src="SpryAssets/SpryURLUtils.js"></script>
<script src="Spry-UI-1.7/includes/SpryDOMUtils.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/SpryDOMEffects.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/SpryWidget.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/SpryPanelSet.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/SpryPanelSelector.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/SpryFadingPanels.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/SpryTabbedPanels2.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/plugins/TabbedPanels2/SpryFadingPanelsPlugin.js" type="text/javascript"></script>
<script src="Spry-UI-1.7/includes/plugins/TabbedPanels2/SpryTabbedPanelsKeyNavigationPlugin.js" type="text/javascript"></script>
<link href="Spry-UI-1.7/css/TabbedPanels2/SpryTabbedPanels2.css" rel="stylesheet" type="text/css">
<script type="text/javascript"> var params = Spry.Utils.getLocationParamsAsObject(); </script>
<script type="text/xml">
<!--
<oa:widgets>
<oa:widget wid="2138522" binding="#TabbedPanels2" />
</oa:widgets>
-->
</script>
</head>
<body>
<div id="TabbedPanels2">
<h2>Tab 1</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce sapien lacus, porttitor vitae pretium eget, sodales sed libero. Maecenas non urna lacus, ac sollicitudin justo. Ut erat mi, hendrerit ac accumsan ac, congue eu dui. Pellentesque consectetur condimentum elit, et eleifend urna porta id. Phasellus blandit ullamcorper dignissim. In rutrum, ante non congue fermentum, metus odio bibendum elit, ut congue sapien arcu ac justo. Vivamus sit amet erat nibh, quis dignissim libero. Pellentesque in sapien felis, et volutpat eros. Maecenas adipiscing, eros sit amet placerat cursus, arcu lacus consectetur lectus, non ultricies neque urna laoreet purus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. </p>
<h2>Tab 2</h2>
<p>Nulla facilisi. Vestibulum ipsum elit, tincidunt sed tristique sit amet, faucibus in orci. Nunc sit amet elit lorem. Sed eget arcu ipsum, pharetra ullamcorper lectus. Sed ac diam ac tortor mattis mollis. Etiam mattis felis vel augue tempus in rhoncus ligula elementum. Vestibulum ut iaculis risus. Aliquam erat sem, feugiat vel laoreet in, lobortis non mauris. Vestibulum neque nibh, vehicula eleifend tincidunt sed, bibendum id dolor. Pellentesque quis libero nec orci porttitor faucibus vitae in velit. Pellentesque dignissim sem ut justo interdum id egestas tellus fringilla. Vestibulum tempor, turpis eget dignissim luctus, est erat ultricies turpis, non tempus massa elit in nulla. Sed eu arcu vel enim laoreet hendrerit at vel enim. Integer semper malesuada sem quis porttitor.</p>
<h2>Tab 3</h2>
<p>Suspendisse potenti. Proin ut erat sit amet turpis egestas tempor. Integer arcu dolor, aliquam ut egestas nec, pharetra ut mauris. Duis urna mi, aliquam id vulputate et, consequat in dolor. Duis congue sem feugiat nulla malesuada scelerisque. Aenean vitae augue nec diam euismod imperdiet. In accumsan consectetur ante a vestibulum. Phasellus eu nulla et lectus tincidunt porttitor. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin mauris massa, venenatis ut fringilla interdum, imperdiet et neque. Sed ut risus metus.</p>
</div>
<script type="text/javascript">
// BeginOAWidget_Instance_2138522: #TabbedPanels2
var TabbedPanels2 = new Spry.Widget.TabbedPanels2("TabbedPanels2", {
injectionType: "replace",
widgetID: "TabbedPanels2",
autoPlay: false,
defaultTab: params.tab ? params.tab : 0,
enableKeyboardNavigation: true,
hideHeader: true,
tabsPosition: "top",
event:"click",
stopOnUserAction: true,
displayInterval: 5000,
minDuration: 300,
maxDuration: 500,
stoppedMinDuration: 100,
stoppedMaxDuration: 200,
plugIns:[]
// EndOAWidget_Instance_2138522
</script>
</body>
</html> -
I spend 5 months in Florida and 7 months in Ontario, Canada. Can a Verizon Samsung Note ll be unlocked and used with a sim card from another carrier in Ontario?
Yes, you should be able to use a local SIM card from a carrier in Ontario. You should not have to do anything prior to doing so.
-
iPad revers back to a home screen from another page being used, IE Facebook Good battery and wifi signal. Sometimes several times in a couple of minutes. Could there be an problem with internal hardware
Hi there
My wife and I have been dealing with a very similar issue with our iPhone 5ss, all battery drain issues started after the upgrade to ios 7.03. We have performed numerous restores and have had 3 trips to the Genius Bar. Finally they gave us new iPhones (yesterday). We had hoped this would do the trick but we have the same problem on the new phones.
This morning I restored one and didn't sign into iCloud. Battery drain is now gone. And when I deleted iCloud from my wife's phone it too went back to normal. So I believe the culprit is iCloud and I am now testing various setups with iCloud to determine which app/setting is causing the problem.
Hope this helps with your phones. I will post again if I can narrow it down to something specific.
Good luck! -
# Question
It is very annoying when I am at a favourite web site and Firefox will not automatically redirect to another page. It is so continuous and I have to "Allow" through the whole time I am at my favourite web sites.
Here is one of those sites:
http://conservatives4palin.com/You can make it automatically redirect by doing this:
1. Go to: Tools > Options > Advanced > General
2. Untick the 'Warn me when websites try to redirect or reload the page' option
3. Click 'OK'
'''If this was the answer you were looking for, please click 'Solved' -- Thanks.'''
Maybe you are looking for
-
AirPlay no longer working reliably on Snow Leopard
I'm on Mac OS X 10.6.8 with latest patches installed, including iTunes 10.6.3. Mac Mini with 8GB RAM. All components connected to home network via wired Ethernet (no wifi involved). Components use fixed IP addresses. I've been using AirPlay with my A
-
Creation of Application module failed
Hi all, I'm trying to deploy BC4J as EJB on OAS4.0.8.2 (OAS and Oracle 8.1.6 on Solaris 2.7). Deployment went OK, I can open Business Component browser but in Object Members View I can see only 2 records for each view (looks like recordset properties
-
How do I install Lightroom on my new computer?
Just trying to figure out how to install my Adobe Lightroom onto my new IMac I already bought it and have it installed on my windows PC... however, I would really like to know how to transfer my program over to my new IMac. Thank you, Autumn
-
Hi Guys, I'm a relatively new in MAC and I'm using Microsoft Office 2008. I have a particular problem with Word- I've been sent a .doc document by a Windows user and as soon as I try to open it, nothing happens, seems like it's going to open it, but
-
I have updated to the newest software on my iphone 5 but still have the red notification circle on the settings app. How do I get rid of it? TIA for help.