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

Google Places API

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

Alex B
Posts: 0
Joined: Sun Sep 16, 2012 3:32 pm

Google Places API

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

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

Google Places API

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.

Alex B
Posts: 0
Joined: Sun Sep 16, 2012 3:32 pm

Google Places API

Is there an easier way to do this? Also

Return to “Issues”