// 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);
Ingelogde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Maak gratis een account aan.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.