Licensing

Map navigation

Description

Code snippet

// pan to an extent
map.panTo(extent);
// zoom to the map's full extent
map.zoomTo(map.getFullExtent());
// zoom to the U.S.
map.zoomTo(new Envelope(-15000000, 2000000, -7000000, 8000000));
// set the map rotation
map.setRotation(rotationAngle);