var featureLayerOptions = { mode: esri.layers.FeatureLayer.MODE_SNAPSHOT, outFields: ["*"], infoTemplate: popUpTemplate() }; var mapServiceURL = "http://" + g_ArcGISHost + g_ArcGISPort + "/arcgis/rest/services/" + g_ArcGISService + "/MapServer/6"; // 6 is for aqueduc right now var featureLayer = new esri.layers.FeatureLayer(mapServiceURL, featureLayerOptions); this.map.addLayer(featureLayer);
var symbol = new esri.symbol.CartographicLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASH, new dojo.Color([0,92,230]), 1, esri.symbol.CartographicLineSymbol.CAP_BUTT, esri.symbol.CartographicLineSymbol.JOIN_MITER, 10); this.featureLayer.setRenderer(new esri.renderer.SimpleRenderer(symbol));
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.