Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The geoservices provider is not supported #187

Open
ad0814 opened this issue Dec 10, 2024 · 0 comments
Open

The geoservices provider is not supported #187

ad0814 opened this issue Dec 10, 2024 · 0 comments

Comments

@ad0814
Copy link

ad0814 commented Dec 10, 2024

I'm using Maplibre in a windows, qt6.5.3 environment, and the import structure is as follows
The question is at the end
Thank you for your answer

CmakeList:

set(CMAKE_PREFIX_PATH "G:/Desktop/Demo/maplibre/install;H:/QT6.6.3/6.5.3/mingw_64")
set(QML_IMPORT_PATH "G:/Desktop/Demo/maplibre/install/qml")
set(QT_PLUGIN_PATH "G:/Desktop/Demo/maplibre/install/plugins")

main.cpp:

engine.addImportPath(QString("G:/Desktop/Demo/maplibre/install/qml"));

Main.qml:

import QtQuick 2.15
import QtLocation 6.5
import QtPositioning 6.5

import MapLibre 3.0

Window {
width: 512
height: 512
visible: true
Plugin {
id: mapPlugin
name: "maplibre"

    PluginParameter {
        name: "maplibre.map.styles"
        value: "https://demotiles.maplibre.org/style.json"
    }
}

MapView {
    id: mapView
    anchors.fill: parent
    map.plugin: mapPlugin

    map.zoomLevel: 5
    map.center: QtPositioning.coordinate(41.874, -75.789)

    MapLibre.style: Style {
        id: style

        SourceParameter {
            id: radarSourceParam
            styleId: "radar"
            type: "image"
            property string url: "https://maplibre.org/maplibre-gl-js/docs/assets/radar1.gif"
            property var coordinates: [
                [-80.425, 46.437],
                [-71.516, 46.437],
                [-71.516, 37.936],
                [-80.425, 37.936]
            ]
        }

        LayerParameter {
            id: radarLayerParam
            styleId: "radar-layer"
            type: "raster"
            property string source: "radar"

            paint: {
                "raster-opacity": 0.9
            }
        }
    }
}

}

Issiue:

I am using Maplibre in the windows qt6.5.3 environment, and the error is as follows
1 , "The geoservices provider is not supported."

Here's why

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant