maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

REST SERVICE GOOGLE STATIC MAPS API CONNECTING BUT NOT DISPLAYING THE MAP WITH THE MARKERS

You can use this approach to embed a static image:

https://developers.google.com/maps/do...

You can place markers and can also specify the location with latitude/longitude values.

Venkatesh Jujjavarapu
Posts: 0
Joined: Tue Sep 11, 2012 10:58 pm

REST SERVICE GOOGLE STATIC MAPS API CONNECTING BUT NOT DISPLAYING THE MAP WITH THE MARKERS

Yup but when i Test the service it returns a PNG IMAGE And when i press populate response structure it says invalid response , i have attached a screenshot also . Image

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

REST SERVICE GOOGLE STATIC MAPS API CONNECTING BUT NOT DISPLAYING THE MAP WITH THE MARKERS

To create a response, it has to a text-based response JSON or XML. I'm not sure I understand why you are trying to show a map via a REST service. Why not just put the link on a page directly?

Venkatesh Jujjavarapu
Posts: 0
Joined: Tue Sep 11, 2012 10:58 pm

REST SERVICE GOOGLE STATIC MAPS API CONNECTING BUT NOT DISPLAYING THE MAP WITH THE MARKERS

ohk i think its high time now , i will explain my App

Screen 1 - has a search button and an input field if u enter 'clothing' and press search button invokes rest service and populates all the store locations and address and the service returns lat long values also and a google map link also, all i am worried is if i click each list item which has Store name, address, zip it must open the screen 2 with a map and a marker on the specific location and difficulties 1 . how to store all the lat , long values in arrays in local storage or

  1. i saved this link in a local storage variable, http://maps.google.com/maps?q=39.0306... so i just need to know how to navigate to this link and display the map with marker on screen2.

    I hope i am clear . please reply.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

REST SERVICE GOOGLE STATIC MAPS API CONNECTING BUT NOT DISPLAYING THE MAP WITH THE MARKERS

To navigate to any page, add a click event to a component (button, for example) and then Navigate To Page action.

Venkatesh Jujjavarapu
Posts: 0
Joined: Tue Sep 11, 2012 10:58 pm

REST SERVICE GOOGLE STATIC MAPS API CONNECTING BUT NOT DISPLAYING THE MAP WITH THE MARKERS

unfortunately, the Rest service which i am using populates lat long of all the locations and maps.google.com/maps?q=, but unfortunately i do not have a way to pass them and display on the map with markers. I have gone through all the funcitonal aspects of the tool. If u want i will add all the screen shots one last time as i started hand coding. Tool ate my time so please respond.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

REST SERVICE GOOGLE STATIC MAPS API CONNECTING BUT NOT DISPLAYING THE MAP WITH THE MARKERS

Once you get data from a service, you can save the data into local storage. That data is then available on any page. You can read the data from local storage, and by using Google Map API create any number of markers and place them on the map.

Tiggzi is an an app builder, or IDE running in the cloud (think along the lines of Eclipse, NetBeans, etc). There is just no magic feature that will automatically add all locations to the map. You need to use Google Map API and code -- the part where markers are added to the map.

Venkatesh Jujjavarapu
Posts: 0
Joined: Tue Sep 11, 2012 10:58 pm

REST SERVICE GOOGLE STATIC MAPS API CONNECTING BUT NOT DISPLAYING THE MAP WITH THE MARKERS

Google geolocation has a parameter called latlng
but i want to know the javascript code to store lat and lng in that parameter!

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

REST SERVICE GOOGLE STATIC MAPS API CONNECTING BUT NOT DISPLAYING THE MAP WITH THE MARKERS

I'm not sure I understand what exactly you want to store, but to help you, you should read Google Map API docs.

Return to “Issues”