Hi,
I want to add a special highlight like the default highlight that occurs when I click on a point in the feature layer. How can I do that?
Thank you @BlakeTerhune for the reply i solved the problem with the GraphicAPI document. If anyone encounters the same problem later, I leave the solution below.
const point = { type: "point", longitude: X, latitude: Y }; const markerSymbol = { type: "picture-marker", url : "your_url", width: "30px", height: "50px", angle: yaw, }; const pointGraphic = new Graphic({ geometry: point, symbol: markerSymbol, }); view.graphics.add(pointGraphic); }
Have you read the API documentation for the FeatureLayerView highlight method? There's a sample app there too. If this isn't sufficient, you'll need to be more specific about what you want to do.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.