mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-12 20:02:01 +10:00
Rename _handleMapTap to _handleMapContextPress, per review comments.
This commit is contained in:
@@ -285,7 +285,7 @@ class _MapScreenState extends State<MapScreen> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _handleMapTap(BuildContext context, MeshCoreConnector connector, LatLng latLng) {
|
void _handleMapContextPress(BuildContext context, MeshCoreConnector connector, LatLng latLng) {
|
||||||
if (_isSelectingPoi) {
|
if (_isSelectingPoi) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_isSelectingPoi = false;
|
_isSelectingPoi = false;
|
||||||
@@ -729,10 +729,10 @@ class _MapScreenState extends State<MapScreen> {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLongPress: (_, latLng) {
|
onLongPress: (_, latLng) {
|
||||||
_handleMapTap(context, connector, latLng);
|
_handleMapContextPress(context, connector, latLng);
|
||||||
},
|
},
|
||||||
onSecondaryTap: (_, latLng) {
|
onSecondaryTap: (_, latLng) {
|
||||||
_handleMapTap(context, connector, latLng);
|
_handleMapContextPress(context, connector, latLng);
|
||||||
},
|
},
|
||||||
onPositionChanged: (camera, hasGesture) {
|
onPositionChanged: (camera, hasGesture) {
|
||||||
// Track zoom in half-step buckets so cluster/marker
|
// Track zoom in half-step buckets so cluster/marker
|
||||||
|
|||||||
Reference in New Issue
Block a user