AnsweredAssumed Answered

Creating a new map using ArcGISRuntimeEnvironment.createObject

Question asked by kschultz@bgohio.org on Dec 3, 2018
Latest reply on Dec 4, 2018 by NManocha-esristaff

I have this block of code

 

 

MapView{
id:mapView
anchors.fill: parent
Component.onCompleted: {

mapView.map = ArcGISRuntimeEnvironment.createObject("Map", {"initUrl": 'https://www.arcgis.com/home/item.html?id=c74acddfcb1844eb90f8f9d40be2c823'});


}
}

 

I want to create a map within mapView but the result is just a gray screen. Is there a correct method of doing this? Because I will need to be able to create x amount of maps. And can't declare each one specifically.

Outcomes