ArcGIS Server Felx API access E city map

Recommended for you: Get network issues from WhatsUp Gold. Not end users.

ArcGIS Server Felx API access E city map

(in this case only study, personal interest if you want the application to commercial use, please contact the relevant manufacturer)

To view the E City website loading way and principle of the three-dimensional map by using HttpWatch tools, to observe its loading way is loaded by the slice, but different city address is not the same, need to adjust the slice loading according to the actual situation of the location of the actual position, but are not. Observation of each section of the load address, infer its loading algorithm, successor to the ArcGIS Server Flex API TiledMapServiceLayer, access E urban map service data. The following code:

packagecom.esri.viewer.components.common.edushi

{

importcom.esri.ags.SpatialReference;

importcom.esri.ags.geometry.Extent;

importcom.esri.ags.geometry.MapPoint;

import com.esri.ags.layers.TiledMapServiceLayer;

import com.esri.ags.layers.supportClasses.LOD;

importcom.esri.ags.layers.supportClasses.TileInfo;

importflash.net.URLRequest;

importflashx.textLayout.formats.Float;

publicclassEdushiTiledMapServiceLayer extends TiledMapServiceLayer

{

//Member variable

privatevar _tileInfo:TileInfo =new TileInfo(); // see buildTileInfo()

privatevar _wkid:int = 102100;

privatevarcornerCoordinate:Number = 20037508.342787;

publicfunctionEdushiTiledMapServiceLayer()

{

super();

buildTileInfo(); // to create our hardcoded tileInfo

setLoaded(true); // Map will only use loaded layers

}

//-----—-

// Full range

// - required to calculate the tiles to use

//-----—-

overridepublicfunctionget fullExtent():Extent

{

returnnewExtent(-cornerCoordinate, -cornerCoordinate, cornerCoordinate,cornerCoordinate, new SpatialReference(_wkid));

}

//-----—-

// Initialization range

// - needed if Map doesn"t have an extent

//-----—-

overridepublicfunctiongetinitialExtent():Extent

{

returnnewExtent(-cornerCoordinate, -cornerCoordinate, cornerCoordinate,cornerCoordinate, new SpatialReference(_wkid));

}

//-----—-

// Spatial reference system

// - needed if Map doesn"t have a spatialReference

//-----—-

overridepublicfunctiongetspatialReference():SpatialReference

{

returnnewSpatialReference(_wkid);

}

//-----—-

// tileInfo

//-----—-

overridepublicfunctionget tileInfo():TileInfo

{

}

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Kevin at January 02, 2014 - 1:07 PM