Acknowledged
CIQQA-4928

MapView: touch panning in MAP_MODE_BROWSE does not work on Forerunner 970 (works in simulator)

Device: Forerunner 970, firmware 19.23 [DFU-594e9c]
SDK: Connect IQ SDK 9.3.0

Description:
On a real Forerunner 970, a WatchUi.MapView in MAP_MODE_BROWSE cannot be panned by touch: dragging a finger over the map does nothing. Panning and zooming with the buttons in browse mode works. In the simulator (fr970 device), touch panning in browse mode works as expected. Native apps on the same watch (Weather, Navigation map) pan by touch normally, and touch is enabled (System.getDeviceSettings().isTouchScreen == true).

Steps to reproduce:
1. Take the SDK sample samples/MapSample, add <iq:product id="fr970"/> to manifest.xml, build for fr970 and side-load it.
2. Start the app, choose "view map", press START to switch to MAP_MODE_BROWSE.
3. Drag a finger across the map.

Expected: the map pans, as in the simulator and as in the native map.
Actual: the map does not move.

Additional findings (from my own app, a MapView with a BehaviorDelegate):
- The delegate does receive the touch input: onDrag is called hundreds of times while dragging, plus onRelease; onTap/onSwipe/onFlick are not called. This happens in both MAP_MODE_PREVIEW and MAP_MODE_BROWSE.
- All touch handlers return false, so the events should be left to the map, but the map still does not pan.
- Returning false from onSelect in browse mode (instead of switching the mode again and returning true, as MapSample does) makes no difference.

This looks similar to CIQQA-3815 (MapViewSample on Edge 1050: dragging in browse mode did not work, reportedly fixed by a firmware update).

  • In general, be a bit skeptical of how MapView/MapTrackView work in the sim and go by what you see on a real device.  I found this right when local maps were introduced.  The maps are from a 3rd party source, what you see in the sim is very generic (it's a native view on the device and can vary even between devices), things like scale may not be shown in the sim, etc.  With MapTrackView, you don't even see the track in the sim. You don't see the compass, and can't change orientation

    On a real device, swiping has effects in a CIQ widget/device apps that don't apply to maps in a native app, such as a swipe from left to right will trigger onBack