app.map = new esri.Map("map"/*, { "extent": new esri.geometry.Extent({"xmin":-13074922,"ymin":4015867,"xmax":-13073339,"ymax":4016413,"spatialReference":{"wkid":102100}}) }*/); //app.map.addLayer(satellite); //app.map.addLayer(labels); //app.map.addLayer(poolFeatureLayer);
var wmsLayer = new esri.layers.WMSLayer("http://sampleserver1.arcgisonline.com/ArcGIS/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/WMSServer"); wmsLayer.setVisibleLayers([0,1,2]); wmsLayer.setImageFormat("png"); { "id" : "layer0", "url" : "http://sampleserver1.arcgisonline.com/ArcGIS/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/WMSServer", "title" : "Specialty/ESRI_StatesCitiesRivers_USA", "opacity" : 1, "type" : "wms", "version" : "1.3.0", "transparentBackground" : true, "visibleLayers" : ["0", "1", "2"] }
{ "url": "http://dl.dropbox.com/u/2654618/kml/Wyoming.kml", "id": "kml_6802", "visibility": true, "opacity": 1, "title": "Wyoming", "type": "KML", "visibleFolders": [0, 1] } A simpler alternative would be to just build the web map in arcgis.com and use the id in the basic viewer app. Is there a reason you don't want to do this?
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.