Enable Wrap Around
The world is round. It does not end at the dateline. However, most flat representations of the earth only extend up till 180 East and West longitude. This makes it difficult to visualize areas that span across the date line, or routes that traverse the Pacific Ocean. It is possible to visualize a world map extending seamlessly beyond the date line. Simply by enabling the wrapAround property on a map, the eastern and western hemispheres wrap around each other forming a continuous map and giving the impression that the map is endless. Panning a map becomes similar to spinning a globe.
// enable wrap around
mMapView.enableWrapAround(true);
Constraints
The following requirements must be satisfied before enabling wrap around
- The maps full envelope must cover the world.
- The map's spatial reference must either be WGS 84 (WKID=4326) or Web Mercator (WKID=102113, 102100, or 3857). This means that all tiled layers in the map must belong to one of these spatial references. Dynamic layers, on the other hand, can be in any spatial reference because they are capable of reprojecting their data.
- Dynamic layers must be based on map services from ArcGIS Server 10.0 or higher. This is because earlier versions of REST API do not support Well-Known Text (WKT) values for spatial reference, which is required for making dynamic map services support wrap around.
1/24/2013