How to use ArcGIS to draw a color distribution map of annual precipitation in China
What I am making is a mobile network base station, which is somewhat similar to yours. In fact, I just need to use different colors in the layer to color the Geometry.
/*Check the layer in the base station by drawing an arbitrary polygon by the user. There are point layers and area layers. You only need to pay attention to the area layer*/
if( geometry.type == "polygon"){ ?var graphicPolygon = new esri.Graphic(geometry, fillSymbol); ?baseMap.graphics.add(graphicPolygon); ?var bSUrl = baseStationUrl; ?bSUrl = bSUrl.replace("{G }", "2G");
/************************************Check The first layer (point layer)****************************************** *********/? ? ?var query1 = new esri.tasks.Query(); ?var queryTask1 = new esri.tasks.QueryTask(bSUrl+"/0"); ? ?query1.geometry=geometry ; ?query1.spatialRelationship = esri.tasks.Query.SPATIAL_REL_CONTAINS; ?//query.text=searchText; ?//Filter the fields included in the attributes of the result set?query1.outFields = ), 1);
var fillSymbol = new esri.symbol.SimpleFillSymbol( ?esri.symbol.SimpleFillSymbol.STYLE_SOLID, ?lineSymbol, ?new esri.Color([ 205, 0, 205, 0.5 ]) ?);
p>
var length2= evt2.features.length;
for(var i=0;i } }