AnsweredAssumed Answered

Is it possible to make the symbol of a graphic clickable?

Question asked by kcgis123 on Sep 10, 2018
Latest reply on Sep 10, 2018 by rscheitlin

Hi there! I'm working with a map where there is graphics with polygon geometry covering the map and point geometry for specific locations. I was wondering if it's possible to make the symbol as a whole clickable, such that clicking anywhere on the symbol would bring up the associated popupTemplate. 


Following is the symbol geometry:

   var markersymbol = {
      type: "simple-marker", 
      style: "path",
      path: markerPath, 
      size: "22px",
      outline: {
         width: 2 

and the geometry:

geometry: {
   type: "point",
   longitude: viewModel.hospitals[i].longitude,
   latitude: viewModel.hospitals[i].latitude,
   spatialRefernece: 102100

Overall I'm trying to make the information stored in these popups easier to access. Generally, the accuracy of clicks on the map itself isn't great, and these location markers are always at the end of the list of points. Any help/insight is greatly appreciated, thank you!