AnsweredAssumed Answered

How to create a map of only one state in Arcgis Javascript?

Question asked by mallareddy2271 on Jun 30, 2017
Latest reply on Jul 3, 2017 by sethlewistempe

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
});
});

Outcomes