Skip To Content ArcGIS for Developers Sign In Dashboard

ArcGIS Runtime SDK for Qt

Display a map

Sample Viewer View Sample on GitHub

Display a map with an imagery basemap.

Use case

The map is the fundamental building block of any GIS application and is used to specify how geographic data is organized and communicated to your users.

How to use the sample

Run the sample to view the map. Pan and zoom to navigate the map.

How it works

  1. Create an Map with a BasemapImageryWithLabels basemap.
  2. Create a MapView object to display the map.
  3. Set the map to the map view.

Relevant API

  • Map
  • Basemap
  • MapView

Tags

basemap, map

Sample Code

import QtQuick 2.6
import Esri.ArcGISRuntime 100.9

Rectangle {
    width: 800
    height: 600

    //! [Create MapView that contains a Map with the Imagery with Labels Basemap]
    MapView {
        anchors.fill: parent
        Map {
            BasemapImageryWithLabels {}            
        }
    }
    //! [Create MapView that contains a Map with the Imagery with Labels Basemap]
}