Closed mohammedX6 closed 1 year ago
It would also be great to be able to disable longpress. If a user longpresses and then drags, I would like him to move the map. Currently this does not do anything as the onLongPress event fires.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Still a issue for me
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
No please my dear bot
Hi @mohammedX6, sorry for the long wait. I'll have a look into this soon.
@mohammedX6 why not just wrap the map with the AbsorbPointer
widget then wrap the entire thing with your InkWell
class Issue1111View extends StatelessWidget {
static const routeName = '/issue_1111';
const Issue1111View({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('Issue 1111')),
body: InkWell(
onTap: () => print('Tapped on the map'),
child: AbsorbPointer(
child: FlutterMap(
options: MapOptions(),
layers: [
TileLayerOptions(
urlTemplate:
"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
subdomains: ['a', 'b', 'c'],
),
],
),
),
),
);
}
}
Hi there, I apologize for the long wait time. I'll try to remember to have a look at it ASAP. Thanks for your patience.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
Since the v3 gesture implementation is very different, it may now be possible to do this easily and reliably. I'll have a look into it - sorry for the delay.
Good work guys !
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
I haven't had a chance to look into this yet, I've been really busy. If anyone else wants to take a look, please do! As I said, it may be easier now with v3.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.
Closing this for now. I think there are suitable workarounds (such as IgnorePointer
), and this is a fairly niche use case I would imagine.
I want to disable map events like onTap because i want to wrap the whole map with InkWell