AnsweredAssumed Answered

Simple Marker Symbol

Question asked by jay.kapalczynski on Mar 19, 2017
Latest reply on Mar 19, 2017 by thejus.kambi

This is a totally stupid question and I am drawing a complete blank...

 

How do I apply the Simple Marker Symbol to my Feature Layer?

 

var layer1 = new FeatureLayer("https://xxxx/arcgis/rest/services/Projects/AVL/MapServer/1", {
        mode: FeatureLayer.MODE_ONDEMAND,
});

var markerSymbol = new SimpleMarkerSymbol();
          markerSymbol.setPath(path);
      
          markerSymbol.setColor(new Color(color));
          markerSymbol.setOutline(null);
          markerSymbol.setSize("32");

layer1.set????? (markersymbol)

Outcomes