// 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);
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.