Hello,
Fairly new programmer here. I have been working with QT Creator and the ArcGIS SDK to work on a project.
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
// Create the Widget view
m_mapView = new MapGraphicsView(this);
m_mapView->connect(m_mapView, &MapGraphicsView::mouseClicked, this, &MainWindow::mouseClicked);
// Create a map using the topographic Basemap
m_map = new Map(Basemap::topographicVector(this), this);
double targetScale = 1000000;
m_map->setInitialViewpoint(Viewpoint(Point(-11853242.850239, 3922136.795369, SpatialReference::webMercator()), targetScale));
// Set map to map view
m_mapView->setMap(m_map);
// set the mapView as the central widget
// setCentralWidget(m_mapView);
ui->gridMap->addWidget(m_mapView);
m_mapView->show();
----------------------------------------------------------------------------------------
I have a .tpk file that was provided to me by the customer.
Can anyone give me a basic example or guide me?
The tutorials I feel like use sample programs and possibly the 10.2x version and I am using
the 100.3
Any help or guidance would be appreciated.
Thanks,
Armando
You can follow the code in this sample - arcgis-runtime-samples-qt/ArcGISTiledLayerUrl.cpp at master · Esri/arcgis-runtime-samples-qt · GitHu...
Only difference is you'll point it to a local file URL instead of an online URL (e.g. "file:///Users/username/folder/Topographic.tpk")