From 94f7b01c19243ea5f312f5e46250f179f20ae3f2 Mon Sep 17 00:00:00 2001 From: Joe Clark Date: Wed, 29 Nov 2023 16:36:54 -0700 Subject: [PATCH] dropping pin without edit mode --- .../java/mil/nga/mapcache/GeoPackageMapFragment.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mapcache/src/main/java/mil/nga/mapcache/GeoPackageMapFragment.java b/mapcache/src/main/java/mil/nga/mapcache/GeoPackageMapFragment.java index 2e52a5b3..a9440471 100644 --- a/mapcache/src/main/java/mil/nga/mapcache/GeoPackageMapFragment.java +++ b/mapcache/src/main/java/mil/nga/mapcache/GeoPackageMapFragment.java @@ -3352,6 +3352,15 @@ public void onMapLongClick(@NonNull LatLng point) { } updateEditState(true); } + } else { + // Drop a pin on user long press when not editing specific layer + vibrator.vibrate(VibrationEffect.createOneShot(getActivity().getResources() + .getInteger(R.integer.edit_features_add_long_click_vibrate_quick), + VibrationEffect.DEFAULT_AMPLITUDE)); + editFeatureType = EditType.POINT; + Marker marker = addEditPoint(point); + editFeatureType = null; +// editPoints.put(marker.getId(), marker); } } }