Ben Walker
Posts: 0
Joined: Mon Jan 19, 2015 2:13 pm

List service has to be invoked twice to show all geopoints

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?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

List service has to be invoked twice to show all geopoints

Hello!

Yes, it should... Are there any errors in console?

Ben Walker
Posts: 0
Joined: Mon Jan 19, 2015 2:13 pm

List service has to be invoked twice to show all geopoints

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.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

List service has to be invoked twice to show all geopoints

Hello Ben,

Could you please send us a screenshot of these massages?

Ben Walker
Posts: 0
Joined: Mon Jan 19, 2015 2:13 pm

List service has to be invoked twice to show all geopoints

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

Ben Walker
Posts: 0
Joined: Mon Jan 19, 2015 2:13 pm

List service has to be invoked twice to show all geopoints

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.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

List service has to be invoked twice to show all geopoints

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.

Ben Walker
Posts: 0
Joined: Mon Jan 19, 2015 2:13 pm

List service has to be invoked twice to show all geopoints

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.

Ben Walker
Posts: 0
Joined: Mon Jan 19, 2015 2:13 pm

List service has to be invoked twice to show all geopoints

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

List service has to be invoked twice to show all geopoints

Yes, it is. Thanks! We'll post an update here.

Return to “Issues”