Comments (3)
When I added double click my intention was to keep the MapInfo event like it was. However, I added the TapType to all tap events and now this has become confusing. I guess this needs to be fixed.
An alternative is to remove MapInfo and add a GetMapInfo() method to the eventArgs of all the other events. so they can be used for MapInfo instead.
from mapsui.
And thanks for testing beta1!
from mapsui.
Thank you for your quick reply. In the meantime we have implemented the same code defined in the library on our side :
private bool _waitingForDoubleTap = false;
private readonly int _millisecondsToWaitForDoubleTap = 300;
private void ZoomOnDoubleClick(MapInfo mapInfo, TapType tapType)
{
if (_waitingForDoubleTap)
MapCtl.Map.Navigator.CenterOnAndZoomTo(mapInfo.WorldPosition, mapInfo.Resolution * 0.5, 500, Mapsui.Animations.Easing.CubicOut);
else
_ = StartWaitingForSecondTapAsync();
}
private async Task StartWaitingForSecondTapAsync()
{
_waitingForDoubleTap = true;
await Task.Delay(_millisecondsToWaitForDoubleTap);
_waitingForDoubleTap = false;
}
from mapsui.
Related Issues (20)
- Layer is not updated after fetches because the Delayer hangs HOT 1
- Viewport.Rotation could get to 360 ° or more HOT 9
- Some of the Mapsui.Tests.Fetcher are not working HOT 10
- Improve RasterStyle HOT 4
- [Uno] Use SKSwapChainPanel whenever possible HOT 2
- In Map.DataChanged event, DataChangedEventArgs Layer name is empty. It should contains the Layer Name. HOT 4
- [UNO] MapInfo tapable area is off from symbol HOT 8
- Density Coordination HOT 2
- IDisposable guidelines HOT 1
- Map.Info eventargs return null for args.MapInfo.Feature when clicking on feature. HOT 3
- Removing items in ObservableCollection doesn't affect _shadowCollection HOT 1
- Dont cache BaseOnSourceLayers which use WritableLayers as their SourceLayer HOT 5
- Map Binding in WPF HOT 1
- Shapefiles and mbtiles in .NET MAUI (Android) HOT 3
- Mapsui Maui not working in ios 17.5 HOT 7
- Upgrade 3-> 4 / Help / Question / Viewport HOT 6
- Confusion with WMTS (blank map) #question #helpneeded HOT 5
- Memory Leak HOT 10
- [Question/Feature Request] Is there a way to distinguish ViewportChanged events between "manual" and "programmatical" ? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapsui.