How many times can I change the map view, because I cant seem to change it after initialization - using preview mode
How many times can I change the map view, because I cant seem to change it after initialization - using preview mode
It might be different based on if you are using MapView or MapTrackView, and are you doing this in the sim or on a real device? The sim and devices are a bit different in places.
Thank you, Its MapView and on the real watch. I am trying to change the visible area on update.
Also, I keep getting centered on my real location.
It works ok when I initialize the view, but when I pop the view and come back I get re-centered to my last known location
Have you tried only doing it in initialize and using MAP_MODE_BROWSE when you want to change it? Not sure what you are saying about popping the view. Are you leaving the map and coming back? initialize will be called each time you come back.
You're right, it should go to initialize. Turns out the problem is with my rectangles. My top left corner was really my bottom left corner, and my bottom right was top right.
Sorry about that
The reason I didn't use browse mode was because after panning my location wouldn't be saved and it reverts back to where it was. I saw there was a feature request for that, but that was 2 years ago.
Try using MapTrackView. It also may depend on what watch you have and what FW you have.
Thanks I will try that.
Just noticed the sample app that comes with the SDK has the same problems
What device and FW level? This really does matter.
My basic thing is I do next to nothing when displaying a map and let the native view deal with things. I do handle switching in/out of browse mode, but generally do not draw any polylines, markers on rare occasions, and display some text at times.
Maps are kind of tricky, as things can also change based on the map settings on the device itself.
Try this widget:
https://apps.garmin.com/en-US/apps/e5e38814-0a10-4151-b677-9c616a0c5f05
Upper right button switches to browse mode and change from zoom to pan, back takes you out of browse mode. Nothing fancy. MapView, not MapTrackView