i am working in in creating esri operation dashboard ,
i need to extend the functionality of "Layers filter map tool" in dashboard by js api .
what i need to change in the default behavior is to have the ability to filter more than one layer in the same time , also to make the condition between filters AND not OR
i started to create my first maptool with js API but without function till now ..!
here is my js code
define([
"dojo/_base/declare",
"dojo/_base/lang",
"dijit/_WidgetBase",
"dijit/_TemplatedMixin",
"esri/opsdashboard/DataSourceProxy",
"esri/opsdashboard/MapToolProxy",
"dojo/text!./bufferMapToolTemplate.html"
], function (declare, lang, _WidgetBase, _TemplatedMixin, DataSourceProxy,MapToolProxy, templateString
) {
console.log(DataSourceProxy); return declare("Buffer", [_WidgetBase, _TemplatedMixin,DataSourceProxy, MapToolProxy], { templateString: templateString, hostReady: function () { // Update the size of the user experience this.setDisplaySize({ width: 200, height: 200 }); }, onDeactivateButtonClick: function(){ this.deactivateMapTool(); } });
});
what i need is
- how to query the dashboard Layers data sources with my filters data ?
also in my json file
{
"type": "Map Tool",
"title": "Filter Map Tool",
"description": "A map tool that creates buffers from a clicked point",
"usePortalServices": true,
"useDataFromView": true,
"runtime": {
"iconPath": "icon.png",
"path": "buffer.html",
"viewType": "toolbar"
},
"configuration": {
"path": "bufferConfig.html"
},
"credits": "By Esri (http://www.esri.com)"
}
i need to change "viewType": "toolbar" to value not to replace the default tool bar
thanks!