cmv wab widgets
query: {
include: true,
id: 'query',
type: 'titlePane',
position: 8,
title: 'Query',
open: false,
path: 'jimu/BaseWidgetPanel', // Note the path
options: {
// use the WAB WidgetManager (required)
widgetManager: true,
config: {
widgets: [
{
id: 'WABQuery',
uri: 'wabwidgets/Query/Widget', // Note the path
// more complex configuration passed to WAB Widget
config: {
queries: [
{
name: 'Cities',
url: 'https://sampleserver6.arcgisonline.com/arcgis/rest/services/SampleWorldCities/MapServer/0',
filter: {
logicalOperator: 'AND',
parts: [
{
fieldObj: {
name: 'POP_RANK',
label: 'POP_RANK',
shortType: 'number',
type: 'esriFieldTypeInteger'
},
operator: 'numberOperatorIs',
valueObj: {
isValid: true,
type: 'value',
value: 3
},
interactiveObj: '',
caseSensitive: false,
expr: 'POP_RANK = 3'
}
],
expr: 'POP_RANK = 3'
},
popup: {
title: '${CITY_NAME}',
fields: [
{
name: 'CITY_NAME',
alias: 'CITY_NAME',
specialType: 'none'
}
]
},
resultsSymbol: {
color: [
0,
0,
128,
128
],
size: 18,
angle: 0,
xoffset: 0,
yoffset: 0,
type: 'esriSMS',
style: 'esriSMSCircle',
outline: {
color: [
0,
0,
128,
255
],
width: 0.75,
type: 'esriSLS',
style: 'esriSLSSolid'
}
},
objectIdField: 'OBJECTID',
orderByFields: []
}
]
}
}
]
}
}
}saveSession: {
include: true,
id: 'saveSession',
type: 'titlePane',
position: 0,
title: 'Save Session',
open: true,
path: 'jimu/BaseWidgetPanel', // Note the path
options: {
// use the WAB WidgetManager (required)
widgetManager: true,
config: {
widgets: [
{
id: 'WABSaveSession',
uri: 'widgets/SaveSession/Widget', // Note the path
// includes an optional configuration
config: {
fileNameForAllSessions: "cmvSessions.json",
fileNameTplForSession: "cmvSessions_${name}.json"
}
}
]
}
}
}widget: {
include: true,
id: 'widget',
type: 'titlePane',
position: 0,
title: 'Aloha Threat Zone',
canFloat: true,
resizable: true, // This widget is resizable when floating
open: true,
path: 'jimu/BaseWidgetPanel', // Note the path
options: {
// use the WAB WidgetManager (required)
widgetManager: true,
// This widget requires some height to work properly
style: 'height:400px;',
config: {
widgets: [
{
id: 'WABWidget',
uri: 'widgets/AlohaThreatZone/Widget' // Note the path
}
]
}
}
}
Also in JavaScript:
- multiple line string in jquery
- loop through object js
- Write a javascript program to find roots of quadratic equation.
- making promises in js
- react setState
- how will it look when there is a container inside a a row bootstrap
- js random number
- merge array no duiplicates js
- computed setter
- how to use flatlist keyextractor
- create window electron
- how to update jquery datatable row cell value
- setting property to method in child class javascript
- mongodb delete duplicate documents
- how to find a name of class from page in jquery
- ajax call to load a page on scrolling
- underscore js join
- javascript data structures
- javascript base64 encode string
- how to work react router another component
- javascript format currency
- js loop through associative array
- js check if number is divisible by 2
- javascript tutorial pdf