2012-07-10 67 views

回答

0

您只需創建一個Web應用程序中的任何,在使用ArcGIS的JavaScript API示例給出的樣本:

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/fl_hover.html

大多數ArcGIS Server的東西的作品迷人的移動設備上 的代碼會看起來像這個:

var southCarolinaCounties = new esri.layers.FeatureLayer("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/3", { 
       mode: esri.layers.FeatureLayer.MODE_SNAPSHOT, 
       outFields: ["NAME", "POP2000", "POP2007", "POP00_SQMI", "POP07_SQMI"] 
      }); 
southCarolinaCounties.setDefinitionExpression("STATE_NAME = 'South Carolina'"); 


    map.addLayer(southCarolinaCounties); 
相關問題