var pointerSymbol:Symbol = new PictureMarkerSymbol("assets/images/arrow_down_new.png",39,50,0,25,0) highlightedGraphic.symbol = pointerSymbol; map.centerAt(searchResult.point); highlightedGraphic.geometry = searchResult.geometry; highlightedGraphic.visible = true;
I believe it is fair to say that this is a difficult task.So far I have been able to do some minor changes for the mouse over/out events.I have removed the popup from showing when a record is highlighted in the search results, and I also have the centerAt function change the extent to center over the highlighted search result.Rather than editing the actual graphic, I am now looking to add an additional graphic, such as an arrow over top the search result.in the mouse over event I have this so far: var pointerSymbol:Symbol = new PictureMarkerSymbol("assets/images/arrow_down_new.png",39,50,0,25,0) highlightedGraphic.symbol = pointerSymbol; map.centerAt(searchResult.point); highlightedGraphic.geometry = searchResult.geometry; highlightedGraphic.visible = true;I then have the highlightedGraphic not visible on the mouse out event.I thought this would draw the arrow 25 pixels above the highlighted record. Needless to say I was wrong. The arrow doesn't even draw. I thinking it has something to do with setting the geometry of the highlightedGraphic, but I have already tried setting that with not much success to show for it.I'll continue to plug along. If anyone gets any bright ideas let me know.Thanks in advance!-Chris B.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.