1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
5\page location-plugin-itemsoverlay.html
6\title Qt Location Items Overlay Plugin
7\ingroup QtLocation-plugins
9\brief Provides an empty map intended to be used as background for an overlay layers for map items.
13This geo services plugin is a special plugin providing only an empty map.
14This plugin provides no services, and is intended to be used in those cases where a \l Map element should
15only show the added map items.
17The Items Overlay geo services plugin can be loaded by using the plugin key "itemsoverlay".
19\section1 Example usage
21The following snippet shows how a Map using this plugin can be added as an overlay to display
22anti-aliased map items.
23Note that for such an overlay Map to be transparent, it is also necessary to set its color to
24a transparent one, such as \b transparent, like in the example.
37 plugin: Plugin { name: "osm" }
38 center: QtPositioning.coordinate(45,10)
46 plugin: Plugin { name: "itemsoverlay" }
47 gesture.enabled: false
48 center: mapBase.center
49 color: 'transparent' // Necessary to make this map transparent
50 minimumFieldOfView: mapBase.minimumFieldOfView
51 maximumFieldOfView: mapBase.maximumFieldOfView
52 minimumTilt: mapBase.minimumTilt
53 maximumTilt: mapBase.maximumTilt
54 minimumZoomLevel: mapBase.minimumZoomLevel
55 maximumZoomLevel: mapBase.maximumZoomLevel
56 zoomLevel: mapBase.zoomLevel
58 bearing: mapBase.bearing
59 fieldOfView: mapBase.fieldOfView
64 center: QtPositioning.coordinate(44, 10)
74 // The code below enables SSAA
77 property int w : mapOverlay.width
78 property int h : mapOverlay.height
79 property int pr: Screen.devicePixelRatio
80 layer.textureSize: Qt.size(w * 2 * pr, h * 2 * pr)