Page 2 of 2

Google Places API

Posted: Fri Oct 19, 2012 12:10 am
by maxkatz

When you invoke the Google service, and map the location returned to the map, on service's success event call this:

code
var m = Tiggzi(map_name);
m.options['address']='';
m.refresh();
/code


Google Places API

Posted: Fri Oct 19, 2012 4:36 am
by Alex B

Using the debugger tool, I'm getting an error message of:

"Cannot refresh, map is not initialized!"

Also, I believe the latitude and longitude coordinates are not being stored in the local storage because the debugger shows that the parameters being inputted into the Google Places REST is:

null,null

Debbuger

Image

Google Place request input/parameters

Image

Javascript you gave me for lat/lng in Google Place REST

Image

Javascript Map Refresh

Image


Google Places API

Posted: Fri Oct 19, 2012 4:46 am
by maxkatz

Tiggzi (googlemap1) needs to be Tiggzi('googlemap'); and that's assuming the map component is named 'googlemap1'.

The localStorage.getItem('latitute') -- this assumes the variable you use is called 'latitude'. If it's something else you need to change it.

As for local storage values not saved.. put a couple of console.log(..) statements and see what happens.


Google Places API

Posted: Mon Jul 20, 2020 6:18 pm
by Alex B

Is there an easier way to do this? Also