w
Posts: 0
Joined: Tue Mar 26, 2013 12:30 pm

Googlemap not working

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?

Oleg Danchenkov
Posts: 0
Joined: Tue Apr 30, 2013 5:51 pm

Googlemap not working

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?

w
Posts: 0
Joined: Tue Mar 26, 2013 12:30 pm

Googlemap not working

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.

Oleg Danchenkov
Posts: 0
Joined: Tue Apr 30, 2013 5:51 pm

Googlemap not working

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...

w
Posts: 0
Joined: Tue Mar 26, 2013 12:30 pm

Googlemap not working

Thank you.

Return to “Issues”