Page 1 of 2

Problem with Maps component

Posted: Mon Aug 05, 2013 3:02 am
by Bob Fludder

Hi, Just added a map component to my app. Not doing anything with it (yet) but I noticed when I test it I get a message showing in the firebug console saying "Cannot refresh, map is not initialized!" appery.js (line 2101). Any ideas what must be done ? Oh and yes I went through the tutorial as well


Problem with Maps component

Posted: Mon Aug 05, 2013 4:32 am
by Illya Stepanov

Hi Bob - please can you tell us with what particular tutorial you've been working?

And what is your FireFox version? As I just tested it (in FF 22.0) - it's not reproducable (maybe you can show us exact steps to reproduce it).


Problem with Maps component

Posted: Mon Aug 05, 2013 4:51 am
by Bob Fludder

Hi Illya,

Same version of firefox. Tutorial was the Building a mobile app with Google Map and Geolocation.


Problem with Maps component

Posted: Mon Aug 05, 2013 5:11 am
by Bob Fludder

Illya,

What I've done is only add the map component. Renamed to map and that is all. I'm going to add in all the other details (as per the tutorial) and see if that helps


Problem with Maps component

Posted: Mon Aug 05, 2013 5:21 am
by Illya Stepanov

Ok Bob - please try and let us know.


Problem with Maps component

Posted: Mon Aug 05, 2013 5:36 am
by Bob Fludder

Hi Illya,

No good. Still the same message. The tutorial is http://docs.appery.io/tutorials/build.... The only thing I didn't do was to allow for input fields. Just created a button so to click on that and give me my current location - like in the second part (where am I)


Problem with Maps component

Posted: Mon Aug 05, 2013 5:45 am
by Kateryna Grynko

Hi Bob,

Please make sure you followed another steps correctly then share your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a


Problem with Maps component

Posted: Mon Aug 05, 2013 6:24 am
by Bob Fludder

Hi Katya,

Looks like the original "map is not initialized" message may be a warning but..
If I enter a location it works but looks like the geolocator service isn't working because when I click on "show my location" nothing happens.

The app is shared


Problem with Maps component

Posted: Mon Aug 05, 2013 6:52 am
by Kateryna Grynko

Thank you, we'll take a look.


Problem with Maps component

Posted: Mon Aug 05, 2013 8:14 am
by Kateryna Grynko

Hi Bob,

You can ignore the message. The fact that Google Maps do not provide ready event. That is, it's impossible to know the time when Google Maps are ready to go in runtime. Appery.io component module works so that on Page Show event all the components are updated. At the same time, this isn't incorrect or wrong behaviour for Google Maps component. Just this is the logic of work with this component.

On desktop browser tester, you won't be able to call a standard Geolocation service because of the dependence of the service on the device. That is, you can check it out on an actual device or emulator only, and for the installed binary executable APK/IPA only.