Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Change Map language in QML Map element
Forum Updated to NodeBB v4.3 + New Features

Change Map language in QML Map element

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 301 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alisa
    wrote on last edited by Alisa
    #1

    Can't change language in MapBoxGL QML Plugin. According to https://stackoverflow.com/questions/59446043/qt-qml-changing-mapbox-font-size and https://docs.mapbox.com/mapbox-gl-js/example/language-switch/ I`m trying to do it like this:

    MapParameter {
                type: "layout"
                property var layer: "country-label"
                property var textField: ["get", "name_de"]
            }
    

    But console output is:

    Layer not found: "country-label"

    M 1 Reply Last reply
    0
    • A Alisa

      Can't change language in MapBoxGL QML Plugin. According to https://stackoverflow.com/questions/59446043/qt-qml-changing-mapbox-font-size and https://docs.mapbox.com/mapbox-gl-js/example/language-switch/ I`m trying to do it like this:

      MapParameter {
                  type: "layout"
                  property var layer: "country-label"
                  property var textField: ["get", "name_de"]
              }
      

      But console output is:

      Layer not found: "country-label"

      M Offline
      M Offline
      Marek
      wrote on last edited by
      #2

      @Alisa said in Change Map language in QML Map element:

      MapParameter {
      type: "layout"
      property var layer: "country-label"
      property var textField: ["get", "name_de"]
      }

      Hi
      Have you found the sollution?
      Best
      Marek

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved