// Create the Point var point = new esri.geometry.Point(pointX, pointY, new esri.SpatialReference({ wkid: 4326 })); // Create a point image symbol: var symbol = new esri.symbol.PictureMarkerSymbol("/Images/point.png", widthInPixels, heightInPixels); // Set up the template for the info window. var infoTemplate = new esri.InfoTemplate("Point attributes", "${*}"); // Create a graphic from the point: var graphic = new esri.Graphic(point, symbol, infoTemplate); // Add the graphic featureLayer.add(graphic);
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.