This is a very simple question but a Google search did not provide an answer.
Basically suppose you have a map of the U.S. with states and county layers, as well as other layers like roads, etc.
I want to work with a map of only one state. in Arcgis JavaScript.
I did below code for whole world map loading:
var map;
require([
"esri/map",
"dojo/domReady!"
], function (
Map
) {
map = new Map("map", {
basemap: "osm",
center: [-122.9007, 47.0379],
zoom: 9
});
});