Map BoundingBox crashing app

the session global var is a list that looks like [lat,long,zoom,.. where lat and long is the centre of the map. this should create a bounding box around the player. The coordinates are correct, I checked when I disabled the bounding box method, but when I enable it the app crashes. The zoom applied to the map is +2 the provided zoom. the provided zoom is 13.

Although I doubt it, here's the entire code if it is any useful
SCREEN2 (current)


SCREEN1 (previous)

Export and post the aia here?

I ran a quick test, to set the bounding box after tapping the map twice in suitable locations, then setting the zoom. No issues with that, bounding box is set and zoomed correctly.

You may want to re-check the coordinates being set from centre of string are all in the correct format.

pjv3.aia (24.6 KB)
You would need to scan a qrcode with LAT,LONG,ZOOM and then LAT1,LONG1,TITLE1,LAT2,LONG2,TITLE2, ...

example

38.8291027,-9.4492175,13,38.8264220,-9.4377353,Aquário,38.8371154,-9.4596017,Chitas

They work for setting the NW and SE pinpoints so they should work for the map border

You might want to try setting centreFromString first, then set the bounding box.

centreFromString has proven the most reliable way to "go" from one location to another in the Map component.

You could also try doing the calculations first, setting the coordinates to a local variable, then set these to a bounding box.


It is ran first, or how else should I set it up?

Sorry, missed that in your blocks image :upside_down_face:

Try removing all the marker setting blocks and the setting of NW and SE in cwork.

Does setting the bounding box then work ? - could be a case of doing too much on the map "at the same time"...

Also looks like you are running/testing with iOS ?

I only have Android here for testing, which could be a difference.

The only android I have does not have a camera, so yes, iOS. I put the markers on init and borders on clockwork and it still crashes