AnsweredAssumed Answered

Create a map graphic with no InfoTemplate

Question asked by tligon on Feb 7, 2013
Latest reply on Feb 11, 2013 by tligon
I'm working on an application where information is displayed in a table panel and loaded on a map. I need to highlight a map marker from a mouse click in the table. I know how to do that, but I don't want to use an InfoTemplate for the highlight graphic - in fact, I don't want the highlight graphic to be processed at all if it is clicked.

I do have a custom function that runs when the user clicks the map - it buffers the click point by 10 pixels, grabs any graphics in the buffer, and adds them to the info window collection. I could put an attribute in the highlight marker and exclude it from the info window collection, but I was wondering if anybody has an easier way to exclude the highlight marker. I thought I could just exclude the InfoTemplate when I create the marker, but InfoTemplate is a required parameter when creating the marker.

Outcomes