Comments (3)
I agree with most points.
I think the GetAlternateMode() would solve the Editing Problems on Mobile/Touch Platforms.
There could be a Property that tells if the GetAlternateMode is supported in the platform and if not an Alternate Mode Button is displayed in the Editing Widget.
Or there could be a Property For displaying the AlternateModeButton on Mobile Platforms this is initially true. If it is set to false the GetAlternateMode Function needs to be implemented when it isn't implemented it throws an exception.
from mapsui.
@inforithmics I have been in submarine-mode in the previous weeks, focusing on manipulation (touch and mouse) and tackling anything that got in my way. The situation has completely change to when I wrote this post initially.
Some remarks:
- The EditingWidget should not have priority but for the work on manipulation it served as a very useful testcase. It was problematic because the old manipulation implementation was problematic. I made the EditingWidget usable on all platforms, also with touch.
- GetShiftState is now a method that needs to be implemented on all platforms (because it is called from the shared code, and it would not compile without). The implementation was not fixed yet. I think we should fix it because for mouse users this is really helpful. This means we need to start tracking key state on those platforms.
- Above I mentioned not supporting double click because it was entangle with platform specifics and did not function the same way on all platforms. This situation has changed, in main there is now a shared TapGestureTracker which is used on all platforms. It also detects double tap. And it may also implement long press. It is an isolated part of the code so easy to implement it, without the need for platform knowledge.
- In general I am very happy with how the manipulations turned out. We have three trackers: TapGestureTracker, FlingTracker (not really looked at that, could perhaps be improved, but it works) and the ManipulationTracker. That last one isolates a lot of previously very complicated things. Now you just call it with an array of all the contact positions, and it then calls Navigator.Manipulate with a Manipulation state parameter:
_manipulationTracker.Manipulate(positions, Map.Navigator.Manipulate);
, we do not need to distinguish between a drag and pinch mode. - Now that we have double tap it becomes possible to use the EditingWidget on mobile.
- I think we should not add GetAlternateMode to the MapControl or eventArgs. If anything it should be a state in the EditingWidget itself. Actually we already have buttons used in the EditingWidget that change state, they are used in the main Editing sample.
- If we implement GetShiftState it might also become logical to go all the way with the modifier keys.
from mapsui.
I created to new issues and will close this one.
#2575
#2576
from mapsui.
Related Issues (20)
- [Question/Feature Request] Is there a way to distinguish ViewportChanged events between "manual" and "programmatical" ? HOT 3
- Pinch zoom causes map to pan even with PanLock on HOT 4
- PanLock prevents programmatic moving of the map HOT 2
- WPF: Zoom is laggy after MapControl is re-created HOT 4
- RasterizingLayer performance and display HOT 18
- Let Map be Disposable but not the MapControl
- WPF: Shape layer performance issue HOT 3
- Blazor map control crashes when AOT compiled HOT 8
- System.Text.Json has a vulnerability in version 8.0.3 HOT 3
- Country reappears after it gets back into the viewport HOT 6
- Features are not in the right namespace HOT 2
- Sprite was removed without replacement HOT 1
- How to create Custom calllout
- MapControl from Mapsui.Uno.WinUI doesn't work when targeting windows
- [iOS][4.X.X] Recording of map touches in widgets works selectively HOT 2
- Feature export problem with Mapsui.Rendering.Skia.MapRenderer().RenderToBitmapStream HOT 2
- Problem with the map rotating 5.0.0-Beta2, iOS HOT 1
- Maui Android laggy map navigation
- MapControl in WINUI 3 crashes with WindowsAppSdk 1.6.240829007 HOT 5
- Add documentation on loading bitmaps on MAUI HOT 4
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.