Comments (2)
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 to make 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.
- I mention not supporting double click. Because it was entangle with platform specifics and did not function the same way on all platforms. In main there is now a TapGestureTracker which is used on all platforms. It also detects double click. And it may also implement long press. Its logic is quite isolated.
- 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 double click is possible it becomes possible to use editing on mobile which makes an alternative less necessary.
- 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 top Editing sample that you updated for skia.
- If we implement GetShiftState it might also become logical to go all the way with the modifier keys.
from mapsui.
Related Issues (20)
- System.NullReferenceException when replacing TileLayer. HOT 4
- Replace ILayer.Style with a ILayer.Styles like IFeature.Styles HOT 2
- MyLocationLayer with animation results in tiles not loading HOT 8
- Crash after click on "Attribution" label on Linux (Mapsui Avalonia) HOT 2
- Any way to draw different colors along the normal direction of the line using an offset value? HOT 2
- Scrolling the mouse wheel to zoom sometimes gets stuck going in only one directly HOT 4
- Updating DataSource in Layer has no effect if Layer is wrapped in a RasterizingTileLayer HOT 1
- Transparent Fill on ellipse SymbolStyle becomes white when interacting with map HOT 2
- Breaking changes in changeset Feb 11, 2024, 08:88 e41e3536fd58417dc84099c13038bf0bc8bbc69b ? HOT 5
- Can VectorStyle use both Background and FillStyle(not solid) simultaneously? HOT 2
- [Mac] Map changes resolution when moved to secondary screen HOT 2
- Minimum space between features to prevent overlapping HOT 3
- IWidgetExtended: HandleWidgetTouched's and HandleWidgetTouching's args always the same on MAUI (eg.: ClickCount always 1) HOT 2
- CalloutStyle TitleFont Custom FontFamily Didn't work
- [Uno] Using mapsui with .NET 8 causes invalid targets resolution on Windows HOT 2
- UserControl on a pin HOT 3
- Add ZoomToBoxWidget
- Add SliderWidget
- MbTiles not load An error occurred while fetching data. Exception: no such table: tiles HOT 5
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.