Map Viewer on Android

Hi I’m trying to use AddToLocation and GoToLocation on the new MapViewer on Android and both are giving me a NilObjectException, but the MapLocation and the MapViewer aren’t nil. So something else is?

Has anyone got any suggestions on this?

I have created an issue with a test app at: https://tracker.xojo.com/xojoinc/xojo/-/issues/79520

ok i see, and i can not make your example project work !???

I moved the code to the Opening event of the MapViewer and it works fine there.

1 Like