How to disable the map zoom feature when double click event occurs. i am using the MapGraphicsView double click event only for identifying layers. How to disable this zoom feature in Arcgis Runtime 100.2.1 for Qt widget application.
Thanks in advance
Solved! Go to Solution.
Hi Vishnu B,
Yes, this can be done. You can intercept any of the mouse events. To disable the zoom behavior for the MapView on double click, connect up to the signal and "accept" the mouse event. It will look something like this
connect(m_mapView, &MapGraphicsView::mouseDoubleClicked, this, [this](QMouseEvent& mouseEvent)
{
mouseEvent.accept();
});
Hi Vishnu B,
Yes, this can be done. You can intercept any of the mouse events. To disable the zoom behavior for the MapView on double click, connect up to the signal and "accept" the mouse event. It will look something like this
connect(m_mapView, &MapGraphicsView::mouseDoubleClicked, this, [this](QMouseEvent& mouseEvent)
{
mouseEvent.accept();
});
Thank You