Skip To Content

Tiled Map

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:esri="http://www.esri.com/2008/ags"
               pageTitle="A tiled map service">
    <!--
    Description:
    This sample demonstrates how to add an ArcGISTiledMapServiceLayer
    to your Map using the ArcGIS API for Flex.  The tiled layer is
    typically used as a basemap layer in the map and its source is
    a map service that has been cached or has map tiles.
    This map is the National Geographic World map service from
    ArcGIS Online.

    Documentation:
    For more information, see the API documentation.
    https://developers.arcgis.com/en/flex/api-reference/com/esri/ags/Map.html
    https://developers.arcgis.com/en/flex/api-reference/com/esri/ags/SpatialReference.html
    https://developers.arcgis.com/en/flex/api-reference/com/esri/ags/geometry/Extent.html
    https://developers.arcgis.com/en/flex/api-reference/com/esri/ags/layers/ArcGISTiledMapServiceLayer.html

    http://resources.arcgis.com/en/help/flex-api/concepts/index.html#/Types_of_layers/017p00000027000000/

    ArcGIS REST API documentation:
    http://resources.arcgis.com/en/help/rest/apiref/mapserver.html
    http://resources.arcgis.com/en/help/rest/apiref/tile.html

    ArcGIS for Server documentation:
    http://resources.arcgis.com/en/help/main/10.1/#/What_is_a_map_service/0154000002m7000000/
    http://resources.arcgis.com/en/help/main/10.1/#/What_is_map_caching/01540000048q000000/
    -->
    <s:controlBarContent>
        <s:RichText width="100%">
            This sample demonstrates how to add an ArcGISTiledMapServiceLayer
            to your Map using the ArcGIS API for Flex.  The tiled layer is
            typically used as a basemap layer in the map and its source is
            a map service that has been cached or has map tiles.
            This map is the National Geographic World map service from
            ArcGIS Online.
        </s:RichText>
    </s:controlBarContent>

    <esri:Map>
        <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer"/>
        <esri:extent>
            <esri:Extent xmin="-1788000" ymin="-4177000" xmax="10044000" ymax="4511000">
                <esri:SpatialReference wkid="102100"/>
            </esri:Extent>
        </esri:extent>
    </esri:Map>

</s:Application>