Page 1 of 1

Basic Google Map of Address

Posted: Mon Sep 02, 2013 9:39 pm
by Sean Kelley

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.


Basic Google Map of Address

Posted: Mon Sep 02, 2013 9:45 pm
by maxkatz

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


Basic Google Map of Address

Posted: Mon Sep 02, 2013 9:59 pm
by Sean Kelley

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


Basic Google Map of Address

Posted: Mon Sep 02, 2013 10:16 pm
by maxkatz

Can you show us your setup?


Basic Google Map of Address

Posted: Mon Sep 02, 2013 10:25 pm
by Sean Kelley

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.


Basic Google Map of Address

Posted: Mon Sep 02, 2013 11:42 pm
by maxkatz

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


Basic Google Map of Address

Posted: Tue Sep 03, 2013 12:49 pm
by Sean Kelley

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