Hello,
I am currently using the template Finder with json file for configuration settings, I managed to integrate the measurement widget in my application but it is permanently displayed.
I can not find the code to make it appear or disappear depending on the click of a button located in the icon bar. I can do it for the search button but I just need to measure this action.
Here is the code for the action of measurement
{
"classname": "js.LGMapDijitContainer",
"styles": ".mapDijitContainer{position:absolute;width:200px;height:120px;margin:0px;padding:0px;font-size:12px;background-color:white}",
"config": {
"rootId": "mapDijitContainer",
"parentDiv": "contentFrame",
"rootClass": "mapDijitContainer",
"horizOffset": -8,
"vertOffset": [8, -8],
"trigger": "dijitMeasure",
"dependencyId": "map",
"dijitAmd": "esri/dijit/Measurement",
}
}
and the button command to
{
"classname": "js.LGCommand",
"config": {
"rootId": "mesure",
"tooltip": "@tooltips.mesure",
"iconUrl": "images/mesure.png",
"parentDiv": "commandPanel",
"rootClass": "commandButton",
"iconClass": "commandIcon",
"dependencyId": "dijitMeasure",
"publish": "mesure"
}
}
What should I add to appear or disappear the measurement widget?