I see this for api 4.14
Esri Web Style Symbols (2D) | ArcGIS API for JavaScript 4.14
Is there something like this for 3.x api? I need a few symbols and need help finding out how to find them
Solved! Go to Solution.
Jay,
What most people do is render it with an image using PictureMarkerSymbol.
I am accessing a Feature service that I have no control over the symbol point.
Looking to convert/render those points with a hospital symbol...
Is there a list of symbols that I can apply to those points in 3.x javascript api
Jay,
What most people do is render it with an image using PictureMarkerSymbol.
Something like this?
var pictureMarkerSymbolexample = new PictureMarkerSymbol('http://www.esri.com/graphics/aexicon.jpg', 51, 51);
myFeaturelayer.setRenderer(pictureMarkerSymbolexample );
map.addLayer(myFeaturelayer);
Almost.
var pictureMarkerSymbolexample = new PictureMarkerSymbol('http://www.esri.com/graphics/aexicon.jpg', 51, 51);
myFeaturelayer.setRenderer(new SimpleRenderer(pictureMarkerSymbolexample));
map.addLayer(myFeaturelayer);
Dang just got it....ahahhaah THANKS
Although I like yours better:
myFeaturelayer.setRenderer(new SimpleRenderer(pictureMarkerSymbolexample));
Saves me a line.....
var pictureMarkerSymbolexample = new PictureMarkerSymbol('http://static.arcgis.com/images/Symbols/NPS/npsPictograph_0061b.png', 51, 51);
var pictureMarkerSymbolRENDERER = new SimpleRenderer(pictureMarkerSymbolexample);
HospitalPoints.setRenderer(pictureMarkerSymbolRENDERER);