Using Esri Icon Fonts with map graphics

This device does not support 3D.

View the system requirements for more information.

When the ArcGIS API for JavaScript stylesheet https://js.arcgis.com/4.4/esri/css/main.css is included in a web page, the Esri Icon Fonts are immediately available for use. One potential use of the Esri Icon Fonts is to use them as symbol property of Graphic. In the code snippet below a TextSymbol is created by specifying the color, text, and font. The font property is created by autocasting the Font Class.

var textSymbol = new TextSymbol({
  color: "#7A003C",
  text: "\ue61d", // esri-icon-map-pin
  font: { // autocast as esri/symbols/Font
    size: 20,
    family: "CalciteWebCoreIcons"
  }
});

Sample search results

TitleSample

There were no match results from your search criteria.