mapbox-gl-native icon indicating copy to clipboard operation
mapbox-gl-native copied to clipboard

Missing icons on Qt 5.15

Open afendin opened this issue 5 years ago • 7 comments

Until now I had used mapbox://styles/mapbox/navigation-preview-night-v2 style, which was working fine. But when I changed my style to "Navigation"(which is default template from Mapbox Studio), I got following warnings:

[ WARNING ]  "{QSGRenderThread}[ParseStyle]: [3]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{QSGRenderThread}[ParseStyle]: [3]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{QSGRenderThread}[ParseStyle]: [3]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{QSGRenderThread}[ParseStyle]: [3]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{QSGRenderThread}[ParseStyle]: [2]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{QSGRenderThread}[ParseStyle]: [2]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{QSGRenderThread}[ParseStyle]: [2]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{QSGRenderThread}[ParseStyle]: [2]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{QSGRenderThread}[ParseStyle]: [2]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{QSGRenderThread}[ParseStyle]: [2]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{QSGRenderThread}[ParseStyle]: [3]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{QSGRenderThread}[ParseStyle]: [3]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{QSGRenderThread}[ParseStyle]: [3]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{QSGRenderThread}[ParseStyle]: [2]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{QSGRenderThread}[ParseStyle]: [1]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{QSGRenderThread}[ParseStyle]: [1]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."

And my map does not have half of icons on it. enter image description here

Here's my code sample:

import QtQuick 2.15
import QtQuick.Window 2.15
import QtLocation 5.15
import QtPositioning 5.15

Window {
    width: 640
    height: 480
    visible: true
    title: qsTr("Hello World")

    Map {
        anchors.fill: parent

        zoomLevel: 15
        plugin: Plugin {
            name: "mapboxgl"

            PluginParameter {
                name: "mapboxgl.access_token"
                value: "pk.eyJ1IjoiYW1pcmFmZW5kaW4iLCJhIjoiY2p3dWpxa2c0MGs4aTN5cXpnbGx0Z2liaiJ9.bhSGga4rMM44DhZ-JKigfg
            }

            PluginParameter {
                name: "mapboxgl.mapping.additional_style_urls"
                value: "mapbox://styles/amirafendin/ckgt1luiu1qud19pxq6mv8zyo"
            }
        }

        activeMapType: supportedMapTypes[0]
    }
}

afendin avatar Oct 14 '20 11:10 afendin

To make it work had to replace 

["get", "filterrank"]
["get", "sizerank"]
["get", "symbolrank"]
["get", "len"]
["get", "reflen"]
["get", "layer"]

in filters with

["to-number", ["get", "filterrank"]]
etc...

afendin avatar Dec 11 '20 05:12 afendin

I have the ParseStyle issue as well after using a custom navigation map url.

M-Kerr avatar Mar 01 '21 16:03 M-Kerr

Number parsing appears to have broken with Qt 5.15. I've implemented a fix to the Mapbox library here: https://github.com/mapbox/mapbox-gl-native/pull/16562

j-mar avatar Mar 01 '21 16:03 j-mar

I am also seeing this, but the suggested fix does not seem to be helping in this case, the errors:


[ WARNING ]  "{unknown}[ParseStyle]: [3]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{unknown}[ParseStyle]: [3]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{unknown}[ParseStyle]: [3]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{unknown}[ParseStyle]: [3]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{unknown}[ParseStyle]: [2]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{unknown}[ParseStyle]: [2]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{unknown}[ParseStyle]: [2]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{unknown}[ParseStyle]: [2]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{unknown}[ParseStyle]: [3]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{unknown}[ParseStyle]: [3]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{unknown}[ParseStyle]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{unknown}[ParseStyle]: [2]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{unknown}[ParseStyle]: [1]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."
[ WARNING ]  "{unknown}[ParseStyle]: [1]: Expected arguments of type (number, number) | (string, string), but found (value, number) instead."

still appear with it in place.

AndyShawQt avatar Jul 14 '21 08:07 AndyShawQt

any update on this? I'm using a custom style url on Qt 5.15.2 and still get the same "ParseStyle" errors. Is this fixed in any newer releases?

K1ngjulien avatar Nov 19 '21 09:11 K1ngjulien

I have same warnings.

akontsevich avatar Jan 25 '22 18:01 akontsevich

Same issue for me.

zimml avatar Jan 30 '22 10:01 zimml