AnsweredAssumed Answered

How to use my .tpk file instead of the online base map?

Question asked by minipimpmaster on Sep 28, 2018
Latest reply on Sep 28, 2018 by LDanzinger-esristaff

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



Outcomes