// 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);
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und vieles mehr. Neu hier? Erstelle kostenlos ein Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.