Page 1 of 2
List service has to be invoked twice to show all geopoints
Posted: Wed Feb 11, 2015 6:54 pm
by Ben Walker
I am placing a number of markers on a G-map from a DB.
When I invoke a list service, only the first marker is placed. Running the list service again causes all the other markers to place.
Shouldn't all markers display the first time that the list service is run?
List service has to be invoked twice to show all geopoints
Posted: Thu Feb 12, 2015 9:49 am
by Maryna Brodina
Hello!
Yes, it should... Are there any errors in console?
List service has to be invoked twice to show all geopoints
Posted: Thu Feb 12, 2015 6:59 pm
by Ben Walker
Hi Maryna
Not that I can see. I'm very new to this though.
There are a few ! in yellow triangles - but I think those are just advisory rather than error messages.
List service has to be invoked twice to show all geopoints
Posted: Thu Feb 12, 2015 7:03 pm
by Evgene Karachevtsev
Hello Ben,
Could you please send us a screenshot of these massages?
List service has to be invoked twice to show all geopoints
Posted: Thu Feb 12, 2015 7:04 pm
by Ben Walker
When I test the service, all three geopoints are returned correctly.
I am feeding the response from the list service to the marker in the G-map using the following mapping:
$ ---- marker_3
geopoint[0] --- Latitude
geopoint[1] --- Longditude
List service has to be invoked twice to show all geopoints
Posted: Thu Feb 12, 2015 10:36 pm
by Ben Walker
When I hit the button that invokes the list service, this error appears in the JS console:
Uncaught TypeError: Cannot read property 'getBounds' of null
Only one marker displays.
When I hit the button a second time, the same error message displays, but the other two markers are placed on the map.
List service has to be invoked twice to show all geopoints
Posted: Mon Feb 16, 2015 5:04 am
by Yurii Orishchuk
Hi Ben,
Yes this error is a culprit of this problem.
Please give us your app public link and describe steps to reproduce this issue.
Also please check if you have correct coordinates in all items.
Regards.
List service has to be invoked twice to show all geopoints
Posted: Tue Feb 17, 2015 12:03 am
by Ben Walker
Hi Yurii - how do I do that?
The link is http://appery.io/app/project/971a202e...
Just test the app, hit the list button, and you will see what I have described above.
List service has to be invoked twice to show all geopoints
Posted: Tue Feb 17, 2015 12:06 am
by Ben Walker
Just found a "public" checkbox within the test tab - I think that might be what was required..
Let me know if that gives you access.
The test link is http://appery.io/app/mobile-frame?src...
List service has to be invoked twice to show all geopoints
Posted: Tue Feb 17, 2015 9:37 am
by Maryna Brodina
Yes, it is. Thanks! We'll post an update here.