Sean Kelley
Posts: 0
Joined: Thu Oct 11, 2012 2:25 pm

Basic Google Map of Address

When doing basic mapping of a single address with a google map component, should you always get coordinates (via google geo service) before displaying mapping or should it be ok to map address only with no service calls to get longitude and latitude?

I ask this because when you simply add google map to page with default adress (aka San Francisco) and then test, I get the error in console:
Uncaught TypeError: Cannot call method 'getBounds' of undefined
The map displays correctly however.

I never noticed this when using some months ago. I do not see the error on other tutorials when I used geocoord service to map multiple locations.

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

Basic Google Map of Address

It doesn't matter where you get the address or lat/lon information for the map.

Sean Kelley
Posts: 0
Joined: Thu Oct 11, 2012 2:25 pm

Basic Google Map of Address

so why am I getting this error? is it an Appery bug in map component?

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

Basic Google Map of Address

Can you show us your setup?

Sean Kelley
Posts: 0
Joined: Thu Oct 11, 2012 2:25 pm

Basic Google Map of Address

there is not really anything to show. add page, add map component (some default address in properties custom address), click test, then view map page. you see console error:
Uncaught TypeError: Cannot call method 'getBounds' of undefined
xR
(anonymous function)
but map renders ok.

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

Basic Google Map of Address

Yes, the map works fine. I think you can ignore this error.. but we'll check.

Sean Kelley
Posts: 0
Joined: Thu Oct 11, 2012 2:25 pm

Basic Google Map of Address

ok-thanks, let me know if I need to do it differently

Return to “Issues”