Here’s a clean feature, modeled after the classic red pin used in ArcGIS Online, ArcGIS API for JavaScript, and many ESRI maps. Feature Object (GeoJSON format) "type": "Feature", "geometry": "type": "Point", "coordinates": [-118.2437, 34.0522] , "properties": "title": "ESRI Default Location", "description": "Example point using ESRI default marker style", "marker-symbol": "marker", "marker-color": "#E32F2F", "marker-size": "medium"
const graphic = new Graphic( geometry: point, symbol: markerSymbol, attributes: name: "Sample Location" ); esri default marker
// ESRI default marker (red pin) const point = new Point( longitude: -118.2437, latitude: 34.0522 ); Here’s a clean feature, modeled after the classic
This gives you the look used across their web mapping platforms. Here’s a clean feature
const view = new MapView( container: "viewDiv", map: map, center: [-118.2437, 34.0522], zoom: 13 );
require(["esri/Map", "esri/views/MapView", "esri/Graphic", "esri/geometry/Point"], function(Map, MapView, Graphic, Point) const map = new Map( basemap: "streets-navigation-vector" );
const markerSymbol = type: "simple-marker", style: "circle", color: [227, 47, 47], // ESRI red size: 12, outline: color: [255, 255, 255], width: 2 ;