Re: Mapbox GL Native QML plugin
Quote:
mapboxgl-qml should not pull any additional packages. Its dependencies are given at https://build.merproject.org/package...latest_armv7hl Except disk space usage, I don't see any possible side effects of having it installed on the phone if it's not used. We have debugged J1 a while ago and I might have forgotten some details, but as far as I remember, Mapboxgl was crashing itself, without bringing down the whole device. Note that some trivial maps did seem to work on J1. So, we can speculate that its possible to reduce some internal memory consumption by simplifying the schema of the map. However, its not guaranteed to work, maybe limited only to some targeted Mapboxgl versions (not work with the next release), and will probably require lots of work. Taking into account that all newer devices seem to be fine, we may just have to accept that J1 is showing its age and is going to retire with the respect of this application. As for having it as dependency, I don't know how Laufhelden can specify them depending on the device, unless some special stripped down version will be provided without the maps. I don't know how Laufhelden disabled the map on J1 (assuming that's your question), you probably can enable it back in the source. |
Re: Mapbox GL Native QML plugin
New release is out: 1.3.0
This release has panning threshold enabled to avoid accidental panning of the map when you want to just click it. Implemented and proposed by @otsaloma - thank you! This release brings us to the latest Mapbox GL Qt bindings version - 1.3.0, released two days ago. To put in perspective, its not even yet in Qt 5.11 :) The bumped Mapbox GL version has few bugfixes and new features. The one I was waiting for is the ability to show map styles which have missing icons in them. For example, styles based on openmaptiles have this problem. Earlier Mapbox GL versions just refused to render anything after an error - now the error is not fatal and other layers get drawn as they should. So, Cartago is shown much better now. I haven't looked through the changes introduced lately, so cannot tell much about the new features. For interested, look through pull requests at https://github.com/mapbox/mapbox-gl-...pr+is%3Aclosed from about 8 March to end of Aug 2017 (qt-v1.1.0). [Version 1.2.0 had an annoying bug, so I skipped it]. For my surprise, OBS was fine with compiling the plugin for SFOS 2.0.5.6. I have no way to test whether it actually works. For those interested and such old SFOS version, you are welcome to test. Get packages at https://build.merproject.org/project...e:rinigus:maps . Enjoy and let me know if something doesn't work. |
Re: Mapbox GL Native QML plugin
Quote:
I wouldn't want to prevent mapbox-qml from installing on Jolla 1 because it does work. Only when you zoom in too much then it gets unstable and might cause the app to crash. In the map settings of Laufhelden you can enable/disable map support. |
Re: Mapbox GL Native QML plugin
Encouraged by @PamNor's experience (while @rinigus originally sounded quite discouraging), I tried vector maps on a Jolla 1 phone (with SFOS 2.1.4.14):
mapboxgl-qml 1.3.0-10.35.1.jolla is working properly with both, WhoGo Maps 0.92 and Laufhelden 1.0.0-1, no matter if using online or offline vector tiles served by OSM Scout Server 1.4.3-10.29.1.jolla! With OSM Scout Server as map provider, using vector maps seems to be a bit faster than than OSM Scout based bitmap tiles (in Poor Maps; I have never tried Mapnik offline bitmap tiles due to their enormous map sizes). Kudos to you all, this is quite an achievement. |
Re: Mapbox GL Native QML plugin
I am about to begin playing with this promising plugin, but while reading the documentation, I might need a slight push:
Could anyone give me a hint how to do an image overlay, where the image position on the map is given by two of its diagonally opposing corners in the form of (lat, lon) coordinates? Thanks in advance! And of course big thanks to rinigus for carrying the whole bag of mapping capabilities of SailfishOS on his back in such a spectacular way. Much appreciated! |
Re: Mapbox GL Native QML plugin
Quote:
It looks like you could use https://www.mapbox.com/mapbox-gl-js/...#sources-image and a layer that draws it. See https://www.mapbox.com/mapbox-gl-js/...mage-on-a-map/ for an example. In this plugin, approach is the same as in the example - add source and then layer rendering it. Hope that helps. |
Re: Mapbox GL Native QML plugin
As MartinK pointed out in modRana thread (https://talk.maemo.org/showpost.php?...postcount=2013), there is an ongoing work on updating QtLocation. I have asked whether new packages would include MapboxGL plugin and got a reply - no. See discussion at https://git.merproject.org/mer-core/...ge_requests/15
Looks like its induced by old gcc. From this I expect that no major gcc is coming for SFOS 3. I wonder why they don't use neochapay's packaging of gcc? Anyway, the situation with the respect of MapboxGL plugin is more clear now. |
Re: Mapbox GL Native QML plugin
While testing with @pichlo issues with Pure Maps, we observed that map scale changes were reported very frequently. Release 1.3.1 of this plugin allows developers to specify the tolerance at which metersPerPixel property changes are reported. For example, by setting
Code:
metersPerPixelTolerance: metersPerPixel*0.01 |
Re: Mapbox GL Native QML plugin
1 Attachment(s)
Hi @rinigus,
I have a small question maybe you can help me with this. In my app there is a page with a map on it. Problem is now, when I swipe left over the map, often the page stack action (back) is called. Can I somehow lock the map so that it won't trigger a page stack action on swiping? |
Re: Mapbox GL Native QML plugin
Quote:
|
Re: Mapbox GL Native QML plugin
Quote:
|
Re: Mapbox GL Native QML plugin
New version is out: 1.3.2
The main change is the introduction of OpenSSL lock on widget initialization. During testing, @pichlo observed slow down of Pure Maps loading on J1 and, while I hoped so, it did not resolve issues with the closure of Pure Maps. In my case, I haven't had any issues with closing Pure Maps since using this version of Mapbox GL widget (~2 month). Let me know if something breaks with it. |
Re: Mapbox GL Native QML plugin
Hi Rinigus,
just a little question. The MapboxMapGestureArea does not seem to have the same events a MouseArea normally has. Particulary I miss the onReleased event. I need something to determine that onPressAndHold has stopped. |
Re: Mapbox GL Native QML plugin
Hi! Code is here - https://github.com/rinigus/mapbox-gl...estureArea.qml
We probably need then to forward the signal to the main item... |
Re: Mapbox GL Native QML plugin
Quote:
|
Re: Mapbox GL Native QML plugin
Quote:
|
Re: Mapbox GL Native QML plugin
The onReleased event is now fired accurately.
But I noticed that the onPressAndHoldGeo is never fired, activePressAndHoldGeo is set to true. This is also the case with the old version (current openrepos). By the way, do we need something like activeReleased, in case the user does not want the new onReleased event to be fired? |
Re: Mapbox GL Native QML plugin
Quote:
|
Re: Mapbox GL Native QML plugin
Mapbox GL QML has been updated to 1.3.3. Changes are
* addition of onRelease signal by @jdrescher. * compilation of QMapboxGL with ICU support. Turned out that right to left scripts (such as Arabic and Hebrew) were plotted wrong, thanks to @planetos for reporting https://github.com/rinigus/pure-maps/issues/121. Not sure why, but Qt internal BiDi support wasn't used and I recompiled Mapbox GL with direct ICU linking for BiDi support. Mapbox GL library is still at the same version, nothing has been released yet for Qt. |
Re: Mapbox GL Native QML plugin
Just heads up: RTL languages are not resolved, we have a crash at high zoom level observed for the countries with them (https://github.com/rinigus/mapbox-gl-qml/issues/39)
|
Re: Mapbox GL Native QML plugin
Crash induced by RTL languages was fixed upstream. I have updated Qt bindings used by us to the latest available state (Aug 6 2018). This state looks to correspond to qt-v1.5.0, but it wasn't tagged properly by Mapbox.
The current version (1.5.0) looks to have somewhat slower loading when the app is going from minimized to focused state, but I didn't find why. Cannot provide the changelog though, anyone interested can checkout commits from May to Aug 2018 at https://github.com/mapbox/mapbox-gl-...commits/master - there are plenty. |
Re: Mapbox GL Native QML plugin
New version (1.5.0.3) is out and it brings ability to perform run-time styling of the map. This version will be required by the upcoming Pure Maps (1.22.x) and is fully backwards compatible.
For 3.0.3.x and later, get the packages at OpenRepos. For 3.0.2.x and earlier, please use OBS http://repo.merproject.org/obs/home:...mv7hl/armv7hl/ . It exposes changes in underlying style JSON induced by loading of the maps via style URL, a common way to load styles. As soon as style is downloaded from URL, styleJsonChanged is fired and you could process the loaded styles and update styleJson property of the widget. As a result, its easy to implement language changes, if the style support multiple languages. |
Re: Mapbox GL Native QML plugin
As mentioned earlier in Pure Maps thread, new Mapbox GL Native and its QML plugin have been released.
This is a major change. Instead of following QtLocation code for almost two years, we are moving to the library directly (https://github.com/mapbox/mapbox-gl-native). The version packaged now corresponds to https://github.com/mapbox/mapbox-gl-...ag/maps-v1.6.0 with few extra fixes for building. It was made possible by changes in the library build scripts made by Mapbox developers. I hope to be able to follow now the library closer allowing us to use more advanced styling options. In terms of packaging, QML plugin should pull now extra library (qmapboxgl from https://openrepos.net/content/rinigu...native-library) as its dependency. For devs using this QML plugin: ensure that you don't tilt over 50 degrees or you maybe hit by https://github.com/mapbox/mapbox-gl-native/issues/16490 Let me know if you hit some strange bug. I have been testing it for few weeks and it seems to work fine. |
Re: Mapbox GL Native QML plugin
I have just updated QML plugin and its map interaction area. Now it supports flicking (finally). In addition, when you zoom via pinch, there is inertia added at the end of the gesture allowing to zoom faster.
Apps using the plugin (Pure Maps, Kuri and Laufhelden) don't have to be updated, all should work by just updating the plugin. |
All times are GMT. The time now is 17:50. |
vBulletin® Version 3.8.8