I have got an old version of the main osmdroid library code running fine on Wear OS (with online mapping).
The only significant change needed was to add a two finger touch zoom-out at the start of dispatchTouchEvent in MapView.java .
Together with
mMapView.setBuiltInZoomControls(false);
mMapView.setMultiTouchControls(false);
this makes for a usable slippy map. Single finger double tap for zoom in, two finger tap for zoom out + I use MapEventsReceiver longPressHelper for pan to data bounds..
All this is fine for a stand alone app. When we consider a handheld + wearable pair there are more possibilities.
I would like the watch to be able to use any offline map archives on the handheld. Has anyone looked at doing that? Using the Google play services to communicate between wearable and handheld?
Bill
Below is the code I added to the MapView dispatchTouchEvent
// special two finger touch does zoom out at centre
if ((mMultiTouchController == null) &&
event.getAction() == MotionEvent.ACTION_POINTER_UP) {
if (Configuration.getInstance().isDebugMapView()) {
Log.d(IMapView.LOGTAG, "two fingers up");
}
if (canZoomOut()) {
getController().zoomOut();
}
return true;
}