var renderer = new ClassBreaksRenderer(null, "POP2000");
renderer.addBreak(0, 10000, new SimpleFillSymbol().setColor(new Color([56, 168, 0, 0.5]))); renderer.addBreak(10000, 100000, new SimpleFillSymbol().setColor(new Color([162, 224, 0, 0.5]))); renderer.addBreak(100000, 500000, new SimpleFillSymbol().setColor(new Color([241, 250, 0, 0.5]))); renderer.addBreak(500000, Infinity, new SimpleFillSymbol().setColor(new Color([255, 0, 0, 0.5])));
var picSymbol = new PictureMarkerSymbol({ "url":"http://static.arcgis.com/images/Symbols/Shapes/YellowPin1LargeB.png", "height":20, "width":20 });
var renderer = new ClassBreaksRenderer({ "field": "ELEV_FT", //确保字段名正确 "defaultSymbol": picSymbol, "breaks": [ {"minValue": 0, "maxValue": 2000, "symbol": new PictureMarkerSymbol({ "url":"http://static.arcgis.com/images/Symbols/Shapes/BluePin1LargeB.png", "height":20, "width":20 })}, {"minValue": 2000, "maxValue": 4000, "symbol": new PictureMarkerSymbol({ "url":"http://static.arcgis.com/images/Symbols/Shapes/GreenPin1LargeB.png", "height":20, "width":20 })}, {"minValue": 4000, "maxValue": 6000, "symbol": new PictureMarkerSymbol({ "url":"http://static.arcgis.com/images/Symbols/Shapes/YellowPin1LargeB.png", "height":20, "width":