Here's my issue - I created a variable on the first screen and initialized it to an empty list. I then had a text box and a button, the user can enter data (Data is a ZipCode) into the text box and then hit the button to add it to my list. On my second screen I have a map. I want to pull that zip code from my list and set the map to it's location. Is there anyway to do this? Is latitude and longitude needed? If so, how do I accomplish that.
If you read this and need any further details let me know and I can provide them.
I'm confused how to do this. The data being entered is just a zip code. Do I need to change that so the user would enter an address instead? Also how do I get this across multiple screens. I attached files below to show you what I'm working with. Both of these are on screen 1. I have a map on screen 2.
In the code, textbox3 refers to the green box on screen, and zip code is the button with the instructional text. I set it up so that once the user enters their zip code they can't add another one because I felt that was easiest to prevent the user from confusing the map. The goal is that the user enters their data, it goes to the list, or the ZipCode Variable, and then the map on the next screen pulls that value and uses it for its location.
Also I'm new to this community, does a "power user" like you get paid to do this as a job, or do you voluntarily help others? Either way I appreciate your help.
Sorry, I wasn't clear, the postal code (zip code), is entered in the textbox I showed in my blocks. If this doesn't return a reasonably accurate lat/lon, then you may need to find a different method.
You can choose whether you want to return the lat/lon in the first screen or the map screen.
Oh, I think I've realized my issue. I'm trying to create an app that allows the user to input a zip code. My issue isn't finding out what that latitude and longitude for that given zip code is. It's figuring out how I can get the code to pull the user's zip code from a different screen and then apply it to the map to present the user with a map of their location. If needed I can move the zip code enter box to the page with the map to prevent having to store the data over multiple screens because that seems like it might be difficult.
I didn't know what a virtual screen was. How does that work? Is ready the description with a button and arrangements. Is the point of that to add invisible data to a screen?
You are using the wrong tool if you use a zip code to determine where someone is located on a map tool. Zip codes outline areas where a postal code in effect. In most places the Zip code includes all addresses within this area. A location based ONLY on a zip code database can not specifically tell show you were someone is located; it only will provide the latitude and longitude of the centroid of a zip code. The centroid is not necessarily someone's precise location (but might be somewhere near where they are). Are you telling us you have a List of coordinates corresponding to Zip codes in a database on the other Screen? For example, this link is a database showing the latitude/longitude for centroids of all the Zip codes in the USA.. To determine where the Zip code is, you would search the List for the Zip code you want. When you determine the coordinates of the centroid you can use a Map component or Google Maps to display a map near the zip code centroid. You can find a map of the USA Zip code actual boundary obtainable from the US Census Bureau. if you want a map showing the boundaries of the zip code in several formats.
No, I didn't create a list. I attempted to just have the user enters their location and then the map could pull that from a dynamic list to show them there location.
Should I create a database and then do something similar to your code ABG? I could use the list SteveJG provided me with that gives the centroids of all the zip codes in the US. However, if I can't copy it in and have to manually type it out that would be a struggle.
Should I just have the user enter their zip code or whatever location I decide to use on the same screen as the map?