can anyone help me with this? i'm trying to connect my table to the map using app inventor it show's the map the pins are not their here is my code
--
You did not show anything that shows the structure of your global map url ... which I assume you will use with the global address off individual students.
What I think, but do not know, is that you will possibly use a join to merge the global address into the string of the global map url .
Is that possibly what you want to do.
Post an example global map url pointing to one of the addresses you want to render in a map image and the people here can provide a suggestion as to how to merge the address of individual students.
The student address will have to become part of the map url. I suspect.
Oh, and you are NOT connecting your table to anything, you will be inserting an address from the table in the routine to capture a google map that contains the address.
Try some blocks.
....and from your other post (The map is showing but the pins are not their, my table has addresses so that google map can pin them but when i use app inventor they disappear, ) .... yes, they do disappear,
using this method, you can not post multiple pins unless you post ALL the students addresses at one time. If you attempt to add an address one at a time, what you will get is a single 'pin'.
Be aware, you do not have to make a new thread if you decide you need to explain more... you just add to your thread.
If you want the fusion table itself to post a map with the pins of all the students, you may need to reverse geocode the address info to latitude / longitude, use those coordinates in the fusion table to make a Google Fusion Map ...that WILL have all the pins.
--
thank you for your reply, what i want is when I click the button for the map, the map should show where my address were located it's, here is my global links, please help sir
--
1:) , I am sorry, the pieces we needed to see to find out what your Fusion table looks like are not legible in the image you sent. The image is too small and all the link in the text block is truncated.
2) Never post an image of your API_Key ...people helping you do not need to see it. It is a security issue so others can not use your key...that is just advice for the future...no one else saw the image you emailed.
I can however, infer from what you posted that you are not using latitude/longitude location information but possibly street addresses. To make a map with pins in a Fusion table you need that information. If you only have a street address, you can use reverse geocoding to generate latitude and longitude from an address but you will have to include the latitude and longitude information in your fusion table. Yes, you would have to convert each 'address' into latitude,longitude pairs and post them in a fusion table spreadsheet. In the blocks you sent, I saw nothing like that.
A fusion table map can look like this:
This is an example showing how to set up a fusion table to use locations to plot 'pin's and other information (not an AI example, but that does not matter, the example shows how to set up your Fusion table...and you can do it from the Google Web page.) There is no reason to set your table up using AI2. You an do it using AI2 but that process is difficult. Here is the link: https://support.google.com/fusiontables/answer/1244603?hl=en
If the lat/lon location data is in the fusion table, making a map like this is relatively easy and it can be displayed to others as shown below just using the link to the fusion table map.
The table you work with is going to have to have the columns indicated and you are going to have to read the article to find out how to do that.
Another way to do something similar to this is to use the StaticMap API, with it and a WebViewer, you can do something like this:
The following example contains the URL of a static map image of downtown New York City, which is displayed below:
http://maps.googleapis.com/maps/api/staticmap?center=Brooklyn+Bridge,New+York,NY&zoom=13&size=600x300&maptype=roadmap
&markers=color:blue%7Clabel:S%7C40.702147,-74.015794&markers=color:green%7Clabel:G%7C40.711614,-74.012318
&markers=color:red%7Clabel:C%7C40.718217,-73.998284
Notice that you don't need to do anything "special" to get this image to show up on a WebViewer All we needed to do was create a URL containing the 'address's' and or lat/lon coordinates. and post the above url into the url in the AI2 WebViewer socket.
On a map like this, you can not post a lot of coordinates, the number is limited to the maximum size of the url 'message.' so it is character restricted to 2,048 characters. You certainly can post 10 to 15 pins this way, perhaps more. Using a fusion table map, you can post ALL the pins for which you have coordinates.
The link to the Google Static Map API page is https://developers.google.com/maps/documentation/staticmaps/
--
--
댓글 없음:
댓글 쓰기