View Single Post
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#1354
Sorry for the late answer.
Originally Posted by Wikiwide View Post
Quick reply...
Thank you, but I am not updating until night theme is usable in QML GUI (and mode image is used for the menu button).
The latest code in Git already has theming support in QML, just not any user interface for it just now. My plan is to add a button for setting the theme from QML + add your icons and then release it.

Originally Posted by Wikiwide View Post
For now, a question: there are were hard-coded values for "layers" in both PinchMap.qml and MapPage.qml. However, MapPage.qml values take precedence, as I found out while hard-coding my preferred values of mapnik-0.5 and vaer-0.5.
It is basically like this - PinchMap is a stand alone map element/widget and MapPage is the page that is showing a full screen version of the map element/widget. Currently, only MapPage is using PinchMap, but in the future, it should show up in various places, like overview maps for POIs or search results or maybe a small "orientation" map that would show a larger area around your location.

The hardcoded values you see - the one in PinchMap is a default for all PinchMap elements and the one in MapPage is just default for the PinchMAp instance on MapPage (bit redundant as it is the same as the default for all PinchMaps).

BTW, as the QML UI still does not remember selected layers, you can just hardcode them in MapPage for now. Notation for the current modRana version would look like this:

Code:
        layers : ListModel {
            ListElement {
                layerName : "Virtual Earth"
                layerId: "vaer"
                layerOpacity: 1.0
            }
            ListElement {
                layerName : "OSM Mapnik"
                layerId: "mapnik"
                layerOpacity: 0.5
            }
        }
Originally Posted by Wikiwide View Post
By the way, the slider for opacity can be somewhat annoying, especially when there is no way to check the exact value of opacity. Not that important, though, when I can simply hard-code them instead of going through Graphical-User-Interface.
Well, they are configured to jump by 10%, which IMHO should be a good compromise for not having to show an opacity value for each layer. Also, it should be quite easy to set stuff like 50% or to set the same value for multiple layers - there are not that many steps. Now when I think about it, just having 0%, 25% 50%, 75% and 100%, like in GTK GUI, might also do.

Originally Posted by Wikiwide View Post
Best wishes. Will post a screenshot later, probably. I am looking for filter-negative for QML Image.
_________________
Per aspera ad astra...
That's a good question. The negative filter in GTK GUI is using the Python Imaging Library bot something with only Qt as dependency for the QML GUI would be nice. BTW, I've even tried how fast it would be to do the negative in pure Python and it was about 900ms for one 256x256 tile. With PIL, it is almost instant.

Originally Posted by gsever100 View Post
Hi Martin,

I have compared various mapping tools exists on N900 and concluded that this is the most feature-rich and most actively developed one. However, it is slow comparing to Mappero, especially when I overlay a long track (A GPX file with 10K) makes the app and phone unresponsive. Is there any developments in this regard?

Thanks.
Zoom in. ModRana processes every GPS tracklog it loads internally to a series of nearby point clusters. Then it only cares about the points in the clusters that are currently visible.
On the other hand, if the whole track is on screen, it indeed draws all the 10k points. Which is arguably not very fast.

There is certainly room for improvements, such as simplifying the track at zoom levels - modRana already does this for the track logging trace, just not for tracklogs. BTW, now when I think about it, I haven't touched the tracklog drawing code in about 2,5 years. I think it is about time I do something about it.

Originally Posted by gsever100 View Post
Try yourself one of the Tour Divide maps from: http://topofusion.com/divide/gps.php
Sure, good testing data is always welcome.

Originally Posted by nokiabot View Post
Hey martink howslife !
A bit busy at the moment with finishing my masters thesis.

BTW, last Saturday, I made modRana Python 3 compatible with these 60 commits. Of course it is also still fully compatible with Python 2.5 on Maemo and works just fine on the N900 as usual.

This was needed mostly due to the BB10 port, as there is only Python 3.2 available out of the box on that platform. Of course might come in handy elsewhere as platforms slowly migrate to Python 3.
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader
Universal Components - a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)
 

The Following 11 Users Say Thank You to MartinK For This Useful Post: