dojo.require("esri.map"); dojo.require("esri.symbol"); dojo.require("esri.tasks.geometry"); dojo.require("esri.tasks.GeometryService"); dojo.require("esri.tasks.BufferParameters"); dojo.require("esri.toolbars.draw"); dojo.require("esri.geometry.Extent"); dojo.require("esri.layers.MapImageLayer"); dojo.require("esri.layers.TileLayer"); //dojo.require("esri.layers"); var fullExtent; // var infoTemplate = new esri.InfoTemplate("${FIELD_NAME}", "Field ID : ${FIELD_KID}
Produces Gas : ${PROD_GAS}
Produces Oil : ${PROD_OIL}
Status : ${STATUS}"); function init() { map = new esri.Map("mapDiv", { sliderOrientation: "vertical", sliderPosition: "top-right", sliderStyle: "large", logo:false }); var view = new MapView({ container: "mapDiv", // Reference to the DOM node that will contain the view map: map // References the map object created in step 3 }); dyAddMapLayerByConfig(); AddMapGraphicLayers(); map.on("load", LoadInfo); } function dyAddMapLayerByConfig(){ var serverUrl; var serverType; var serverLabel; var serverVisible; var xmlUtil = new XMLUtil(); var xmlDoc = xmlUtil.loadXmlFromFile("config/config_local.xml"); var mapXml = xmlDoc.getElementsByTagName("map"); var mapNodes = mapXml[0].childNodes; for (var i=0;i