You are using a browser that is no longer supported. Please use the latest version of Google Chrome, Mozilla Firefox, Apple Safari, or Microsoft Edge. For more information please see the System Requirements.
Skip To ContentArcGIS for DevelopersSign In Dashboard

Unsupported browser

You are using a browser that is not supported. JavaScript API works on the latest versions of Google Chrome, Mozilla Firefox, Apple Safari, or Microsoft Edge. Use one of these browsers and provide your feedback through GeoNet, the Esri Community.

  • {i18n.unsupportedBrowser.chrome}
  • Firefox
  • Safari
  • undefined
Loading...

Note: Support for 3D on mobile devices may vary, view the system requirements for more information.

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. Set the font family property to CalciteWebCoreIcons to access the Esri Icon Fonts.

const textSymbol = {
  type: "text", // autocasts as new TextSymbol()
  color: "#7A003C",
  text: "\ue61d", // esri-icon-map-pin
  font: {
    // autocasts as new Font()
    size: 36,
    family: "CalciteWebCoreIcons" // Esri Icon Font
  }
};

Sample search results

TitleSample
Loading...