每个组在javascript中可以有不同的颜色吗?
var blue = new PictureMarkerSymbol(picBaseUrl + "BluePin1LargeB.png", 32, 32).setOffset(0, 15);
var green = new PictureMarkerSymbol(picBaseUrl + "GreenPin1LargeB.png", 64, 64).setOffset(0, 15);
var red = new PictureMarkerSymbol(picBaseUrl + "RedPin1LargeB.png", 72, 72).setOffset(0, 15);
renderer.addBreak(0, 2, blue);
renderer.addBreak(0, 2, green);
renderer.addBreak(2, 1001, red);
var newcolor=[];
newcolor.push(blue);
newcolor.push(green);
根据某些情况,我可以在同一渲染中同时使用蓝色和绿色吗(if condition)?renderer.addBreak(0, 2, newcolor);