AnsweredAssumed Answered

Graphic Tooltip

Question asked by paulraj85 on Jul 31, 2018
Latest reply on Aug 24, 2018 by paulraj85

Hi,

I have to display n number of graphic(PictureMarkerSymbol) in the mapview. I can able to display the graphic in mapview, I need one more additional option like while hovering the mouse over the graphic it should display the unique name of each graphic. 

Below is the code for adding the graphics(PictureMarkerSymbol)  in mapview. In that how to add a tool-tip to each graphic?

PictureMarkerSymbol *picSymbol = new PictureMarkerSymbol("icon.png",this);

foreach(const Point &pnt, pntList) {

   Graphic *graphic = new Graphic(pnt, picSymbol);

   m_graphicsoverlay->graphics()->append(graphic);

}

m_mapview->graphicsoverlays()->append(m_graphicsoverlay);

 

Thanks

Paulraj

Outcomes