I am working on an app that uses MapView. In the process I started with the MapSample code as provided with the SDK.
Since I encounter lots of problems I thought I would try and just build the sample as is and run it.
I started with building for debug and running on the simulator with Edge1050 as device. That seems to work reasonably but the simulator crashes as soon as I try to move the map by swiping (in MapView, in TrackView dragging does work).
Since the simulator does not always correctly represent the behaviour of a real device I also made a release build for Edge1050 and sideloade it.
On the Edge it does not work at all. The menu view is shown but when I pick View Map it is obvious there is something wrong:
On the plus side:
+ The PolyLine is shown where it is supposed to be
+ buttons for zooming in and out, and the 'hand' are shown where they are supposed to be
+ the return button shows in the bottom left corner and functions
Errors:
- The Map is not shown at all
- There is a say 10 pixel wide horizontal gray bar on the screen from left to right at about 1/5th down from the top of the screen.
Tapping on the map:
+ moves the polyline to the mid of the screen where it is supposed to be
- The map is not shown at all
- The grey bar is still there, only lower, a bit above the center of the screen
- The 'Hand' icon button is still there where the 'crosshair' Icon button is supposed to be
- zooming in or out does not function, as it should in browse mode
- dragging the map by swiping does not function, as it should in browse view
Clearly the (invisible) map is not set to browse mode but stays in preview mode
If I pick Track View (on the device):
- A map is shown but it is not the map that's defined in the sample, but a map of my own location.
- It is impossible to go to browse mode.
A working version of MapSample seems required for me to make progress with my App.
The API documentation on MapView is of little help.
The FAQ basically explains how MapSample should work, only I can't get it to work
My development environment:
- Apple MacBook Air M3
- Microsoft VSCode latest version 1.108.2
- Garmin Monkey C extension latest version 1.1.2
- ConnectIQ SDK latest version 8.4.0
- Minimum API level set to 5.2.0 - System 8
- Nothing was changed in the MapSample code, I built it as is.
-
flocsy🤠
-
Cancel
-
Vote Up
0
Vote Down
-
-
More
-
Cancel
Comment-
flocsy🤠
-
Cancel
-
Vote Up
0
Vote Down
-
-
More
-
Cancel
Children