Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to remove watermarks from the OSM card?

How to remove watermarks from the OSM card?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 1 Posters 461 Views
  • 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.
  • M Offline
    M Offline
    Mikeeeeee
    wrote on last edited by
    #1

    Hi!
    How to remove watermarks from the OSM card?
    This is my code:

    import QtQuick 2.12
    import QtQuick.Window 2.12
    import QtLocation 5.12
    import QtPositioning 5.12
    
    Item {
        visible: true
        width: 480
        height: 720
    
        property double old : 19
        property double now
    
        Rectangle
        {
            anchors.fill: parent
            color: "#eee"
    
            Plugin
            {
                id: plugin
                name: "osm"
                PluginParameter { name: "osm.useragent"; value: "My great Qt OSM application" }
            }
    
            Map
            {
                id: maps
                anchors.fill: parent
                plugin: plugin
                gesture.enabled: true
                gesture.acceptedGestures: MapGestureArea.PinchGesture | MapGestureArea.PanGesture | MapGestureArea.FlickGesture
                gesture.flickDeceleration: 3000
                zoomLevel: 19
                center: QtPositioning.coordinate(55.845741, 37.660652) // Moscow
                copyrightsVisible: false 
                activeMapType: maps.supportedMapTypes[5] 
                //activeMapType: SatelliteMapNight
                //activeMapType: PedestrianMap
                //activeMapType: MapType.SatelliteMapNight
                //activeMapType: MapType.PedestrianMap
    
    
                onCenterChanged:
                {
                    if (zoomLevel >= 17.5) 
                    {
    
    
                    }
                }
    
                minimumZoomLevel: 1
    
                focus: true
    
                PlaceSearchModel {
                    id: mySearchModel
                    plugin: plugin
                    searchArea: visibleRegion.boundingGeoRectangle()
                    onSearchAreaChanged:  //it's work
                    {
                        console.log("onSearchAreaChanged :" )
                        console.log("count :" + mySearchModel.count)
                        if (count == 1) {
    
                        }
    
                    }
                }
    
                GeocodeModel {           //Location get(index) должно возвращать координаты
                    id: geocodeModel
                    plugin: plugin
                    onLocationsChanged:
                    {
                        //console.log("count: " + geocodeModel.count)
                        //console.log("bounds: " + geocodeModel.bounds)
                        console.log("onLocationsChanged")
                        if (count == 1) {
    
                            console.log("text:" + geocodeModel.get(0).address.text )
                            console.log("coordinate:" + geocodeModel.get(0).coordinate)
                        }
                    }
                }
            }
        }
    }
    
    1 Reply Last reply
    0
    • M Offline
      M Offline
      Mikeeeeee
      wrote on last edited by
      #2

      I get here api key. How to use this key?

      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