Page 1 of 1

Googlemap not working

Posted: Wed May 08, 2013 6:58 am
by w

When I use a standard GoogleMap UI item, even without any code I get a "preview not available" and then my mobile page is automatically redirected to the appery site.
What is wrong here?


Googlemap not working

Posted: Wed May 08, 2013 7:08 am
by Oleg Danchenkov

Could you please clarify what do you mean "use a standard GoogleMap UI item". Do you just drag'n'drop GoogleMap component to a page and get this error on preview, or do you add some JS code?


Googlemap not working

Posted: Wed May 08, 2013 7:21 am
by w

I have a page where I dynamically create links "< a h ref="www.tiggzi.com" ... maps< / a".
But the onclick event is intercepted by javascript, in which I do a Tiggzi.navigate('googlemapsPage').
But apparently then the googlemapsPage is shown with the googlemap on it, but after 1 second being redirected to www.tiggzi.com.

I solved it now by replacing the href with href="#" and now the map is showing and the page is not redirecting.

However, there is 1 marker on the googlemap (on the address specified in the address field of the googlemap). But I cannot select it, or calculate a route, etc. The streetview is working.


Googlemap not working

Posted: Wed May 08, 2013 7:34 am
by Oleg Danchenkov

For navigating to a page use
Appery.navigateTo('pageName', {
reverse: false
});
For "select it, or calculate a route, etc" you should use Google Maps JavaScript API. see https://developers.google.com/maps/do...


Googlemap not working

Posted: Wed May 08, 2013 7:44 am
by w

Thank you.