Select to view content in your preferred language

Would like to use the popup dijit default symbol as a highlight

2339
3
Jump to solution
05-17-2013 10:37 AM
TyroneLigon
Deactivated User
I have code to highlight specific map markers (overlaid with a size 32 yellow marker with 0.25 opacity), but I'd love to use that cyan "target" marker that the esri.dijit.Popup dijit uses. Can I grab that marker from somewhere in the API, or is there code to create it?
0 Kudos
1 Solution

Accepted Solutions
derekswingley1
Deactivated User
Code to create that symbol uses some undocumented methods. Here's how you can use it in your app:  http://jsfiddle.net/7wand/

View solution in original post

0 Kudos
3 Replies
derekswingley1
Deactivated User
Code to create that symbol uses some undocumented methods. Here's how you can use it in your app:  http://jsfiddle.net/7wand/
0 Kudos
jamiehollingsworth
Emerging Contributor
Tyrone,
  I have been trying to figure out how to change from the default box that you wanted to a something else like the marker you have  described.   are willing to share your method?

thanks
j
0 Kudos
TyroneLigon
Deactivated User
Jamie,

My code is behind a firewall, so I can't post it. Take a look at the fiddle Derek S. posted, particularly lines 33 through 48.

In my case I have graphics layers displaying search results from different sources. The click to highlight a particular result does not always occur as a map click; sometimes it's from the search results panel. When I place the highlight marker on the map, I give it a "hilite" attribute. I included a function to search for this particular attribute in the graphics on the map and remove the graphic when the user clicks on the map, clicks on the panel, or runs a new query.
0 Kudos