Symbology

604
5
Jump to solution
01-10-2020 11:34 AM
jaykapalczynski
Frequent Contributor

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

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
0 Kudos
5 Replies
jaykapalczynski
Frequent Contributor

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

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Jay,

  What most people do is render it with an image using PictureMarkerSymbol.

https://developers.arcgis.com/net/10-2/desktop/api-reference/html/5d809f1b-68de-4582-a4fe-166ed75294... 

0 Kudos
jaykapalczynski
Frequent Contributor

Something like this?

var pictureMarkerSymbolexample = new PictureMarkerSymbol('http://www.esri.com/graphics/aexicon.jpg', 51, 51);
myFeaturelayer.setRenderer(pictureMarkerSymbolexample );
map.addLayer(myFeaturelayer);‍‍‍‍‍‍
0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Almost.

var pictureMarkerSymbolexample = new PictureMarkerSymbol('http://www.esri.com/graphics/aexicon.jpg', 51, 51);
myFeaturelayer.setRenderer(new SimpleRenderer(pictureMarkerSymbolexample));
map.addLayer(myFeaturelayer);‍‍‍‍‍‍‍
0 Kudos
jaykapalczynski
Frequent Contributor

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);‍‍‍‍
0 Kudos