POST
|
layerList.on("click",function(event) { var aa="asdas"; }); view.when(function() { // Event listener that fires each time an action is triggered //layerList.on("click", function(event) { // contentLegend=layer; //}); // Create the LayerList widget with the associated actions // and add it to the top-right corner of the view. // This function will execute once the promise is resolved contentGroupLayerFeature.when(function() { contentGroupLayerFeature.on("trigger-action", function(event) { var aa="asdas"; }); }); contentGroupLayerFeature.on("click", function(event) { var aa="asdas"; }); console.log("webmap loaded successfully"); }, function(error){ // Use the errback function to handle when the view doesn't load properly console.log("The view's resources failed to load: ", error); });
... View more
06-12-2020
10:36 AM
|
0
|
1
|
602
|
POST
|
hello luke thank you very much for your help I hope to be able to share things also with you God bless you
... View more
09-08-2017
08:36 AM
|
0
|
0
|
754
|
POST
|
my class Window_Map is the widget connect with mouse event and Slot my_clicked void Window_Map::my_clicked(QMouseEvent &mouseEvent) { if(mouseEvent.button()==Qt::LeftButton){ auto mapPoint = _MapView->screenToLocation(mouseEvent.x(),mouseEvent.y()); qDebug()<<" Punto :: "<<mapPoint; // this show nan nan nan nan } else if(mouseEvent.button()==Qt::RightButton){ _C.setShape(Qt::ArrowCursor); QGuiApplication::setOverrideCursor(_C); disconnect(_MapView,SIGNAL(mouseClicked(QMouseEvent&)),this,SLOT(s1(QMouseEvent&))); } }
... View more
09-05-2017
12:54 PM
|
0
|
2
|
1217
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|