mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:40:05 +00:00
Add geographic coordinates to mouse picking functions
This commit is contained in:
parent
6e04e1fab3
commit
a2f2181f1b
19 changed files with 72 additions and 42 deletions
|
|
@ -1215,8 +1215,11 @@ void MapWidgetImpl::RunMousePicking()
|
|||
for (auto it = genericLayers_.rbegin(); it != genericLayers_.rend(); ++it)
|
||||
{
|
||||
// Run mouse picking for each layer
|
||||
if ((*it)->RunMousePicking(
|
||||
params, lastPos_, lastGlobalPos_, mouseScreenCoordinate))
|
||||
if ((*it)->RunMousePicking(params,
|
||||
lastPos_,
|
||||
lastGlobalPos_,
|
||||
mouseScreenCoordinate,
|
||||
{coordinate.first, coordinate.second}))
|
||||
{
|
||||
// If a draw item was picked, don't process additional layers
|
||||
itemPicked = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue