The initial extent needs to be defined in the qml code of your app. To see an example you can download the Add and edit features sample in AppStudio Desktop Edition. Either use the search panel to browse to Groups > Sample Apps, or click New App and choose to create a new app from the Add and edit features sample (or almost any of the samples).
To demonstrate the use of extent in a much less complex simpler, follow these steps:
1. Click New App
2. Select Hello World (Runtime), enter a title and click OK.
3. Run the app (double click on it) to see that the app displays a world basemap at full extent.
3. Open the new app in Qt Creator.
4. Immediately above the line
Map {
add the following
Envelope {
id: myextent
xMax: -13630000
yMax: 4554300
xMin: -13640000
yMin: 4535200
}
5. After the line
id: map
add the following line
extent: myextent
Your code should look like this
6. Save and run your app. Now you should see that the app displays the map at the extent of San Francisco.