calincru / marble Goto Github PK
View Code? Open in Web Editor NEWMarble is a virtual globe and a world atlas - part of the KDE Applications Suite
License: Other
Marble is a virtual globe and a world atlas - part of the KDE Applications Suite
License: Other
I'm going to design a new user interface when interacting with a placemark. The pop-up bubble is not the best option for now.
It can be avoided by only appending 'empty' PolygonNode instances because the region is set by updateRegions(). The only problem would be with virtual nodes: avoid generating the them at each ::paint() call.
ATM what I do is remote the first selected (for merging) node and test if, without it, the node would have a valid polygon. WHAT I SHOULD DO is replace it with the middle point between it and the second selected node and test if the polygon is valid.
The user's experience is very important, so, in order to improve it, the mouse cursor will change according to the actions.
That is because the region is changed by AreaAnnotation::updateRegions().
Check for other redundancies as well.
This would be something like this: select the first node, select the second node and immediately after that the two nodes will start moving one towards the other until they reach the middle between them and get merged.
ATM we are using an Apply button, but it would be more interactive to visually modify the polygons as soon as some values change (colors/lines width, etc) and only have OK | Cancel buttons. BTW, Cancel should undo all changes from the last time the dialog has been opened, so a version of the initial style should be kept.
After the code refactoring, there should be only one action selected at a time.
Highlight nodes when hovering them.
We also need OSM - so a workaround is needed (as the one for loading annotation files maybe?).
When dragging and dropping nods in 'Merging Nodes' state (which is not allowed) the map cannot be moved immediately after that, unless a node is simply clicked (in fact unless a node catches a mouse release event). Starting from this, try to see the design problem.
This means that first they should enter an Editing state other than the current Editing state (which is the default one). This new Editing state would be the state when their dialog would be displayed, just like Google Earth does. This dialog could be popped up by right-clicking and selecting Properties. Or from a menu with all annotate items.
This should be similar to GO.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.