AnsweredAssumed Answered

Renderers

Question asked by jay.kapalczynski on Dec 7, 2017
Latest reply on Dec 7, 2017 by jay.kapalczynski

I have two renders that I am using to render my Streets.  They both work independently but lost on how to get them into the same renderer...because If I try and use them independently it cancels one out.

 

1st RENDERER

var RoadColor1 = new Color("#eae5e5");
var RoadLine1 = new SimpleLineSymbol("solid", RoadColor1, 1.5);
var RoadSymbol1 = new SimpleFillSymbol("solid", RoadLine1, null);
var RoadRenderer1 = new SimpleRenderer(RoadSymbol1);

RoadBlack1.setRenderer(RoadRenderer1);


2nd RENDERER

//Assign parameters for road width by SPEED
var sizeInfo = {
  field:"SPEED",
  minSize:.2,
  maxSize:10,
  minDataValue:0,
  maxDataValue:70
};
     
RoadBlack1.renderer.setSizeInfo(sizeInfo);

 

How can I combine them so they both work?

Outcomes