Page 1 of 3
REST SERVICE GOOGLE STATIC MAPS API CONNECTING BUT NOT DISPLAYING THE MAP WITH THE MARKERS
Posted: Thu Sep 13, 2012 6:26 pm
by Venkatesh Jujjavarapu
I tested the Google Maps Static Api's as a Rest Service with the URL
http://maps.googleapis.com/maps/api/s... with all the required parameters Center, maptype, key, sensor, size and the TEST IS SUCCESSFUL AND i see a PNG in the result block when i click the test button , so when i click POPULATE RESPONSE STRUCTURE nothing happens,
REST SERVICE GOOGLE STATIC MAPS API CONNECTING BUT NOT DISPLAYING THE MAP WITH THE MARKERS
Posted: Thu Sep 13, 2012 7:16 pm
by maxkatz
The service returns binary data (image), not JSON. To create the response structure, it has to return JSON (or XML) data.
REST SERVICE GOOGLE STATIC MAPS API CONNECTING BUT NOT DISPLAYING THE MAP WITH THE MARKERS
Posted: Thu Sep 13, 2012 7:32 pm
by Venkatesh Jujjavarapu
Thank you so much for the reply , I have called a rest service and got the product results and displayed them in a grid and i have stored the lat long values of all the product details in the local storage variables , so how can i use them to display in the google map in the second screen.
REST SERVICE GOOGLE STATIC MAPS API CONNECTING BUT NOT DISPLAYING THE MAP WITH THE MARKERS
Posted: Thu Sep 13, 2012 8:57 pm
by maxkatz
I'm assuming you also saved the lat/log for each product? If yes, get the values from local storage and then simply use Google Map API to create markers and place them on the map. Place a Google Map component on the page, get a reference to it, create the markers and place them on the map.
REST SERVICE GOOGLE STATIC MAPS API CONNECTING BUT NOT DISPLAYING THE MAP WITH THE MARKERS
Posted: Fri Sep 14, 2012 9:27 pm
by Venkatesh Jujjavarapu
I am storing all the lats in a local storage variable called lat and all the longitude values in local storage variable called long. how can i Store them in an array and retrieve and do your process. and yes i know the process of how to do it , i want to really give a practical HOW not a theoretical HOW !
REST SERVICE GOOGLE STATIC MAPS API CONNECTING BUT NOT DISPLAYING THE MAP WITH THE MARKERS
Posted: Fri Sep 14, 2012 9:27 pm
by Venkatesh Jujjavarapu
REST SERVICE GOOGLE STATIC MAPS API CONNECTING BUT NOT DISPLAYING THE MAP WITH THE MARKERS
Posted: Sat Sep 15, 2012 1:37 am
by maxkatz
Local storage is simple key=value storage: https://developer.mozilla.org/en-US/d....
To store an actual array, you would need to create a string with comma-separated values or in JSON format with multiple values.
As for Google Map API, this has all the information you need: https://developers.google.com/maps/do...
REST SERVICE GOOGLE STATIC MAPS API CONNECTING BUT NOT DISPLAYING THE MAP WITH THE MARKERS
Posted: Mon Sep 17, 2012 5:50 pm
by Venkatesh Jujjavarapu
the thing is that , i have an understanding of google map api , but how to use it with this tiggzi tool, that is what i am trying to figure out and the tool is giving me hard time
REST SERVICE GOOGLE STATIC MAPS API CONNECTING BUT NOT DISPLAYING THE MAP WITH THE MARKERS
Posted: Mon Sep 17, 2012 7:59 pm
by maxkatz
You place a Google Map component on a page. Then, to use the Google Map API you can run a Run Custom JavaScript or create a new JavaScript file:
http://help.gotiggr.com/documentation...
Either way, you can select any elements in the DOM, and invoke any API on the nodes.
REST SERVICE GOOGLE STATIC MAPS API CONNECTING BUT NOT DISPLAYING THE MAP WITH THE MARKERS
Posted: Mon Sep 17, 2012 9:21 pm
by Venkatesh Jujjavarapu
I populate this kind of results which are present in a labels in a List
Walgreens - Seattle
1531 Broadway
http://maps.google.com/maps?q=47.6154... ,
I want to store the map link in a local variable and use it so that it display it in a map in second screen or put a map button to display all the locations with markers .
Both of them i want to display on google maps. I hope you understand now.