Roberts Custom WAB Widgets

295530
475
12-31-2014 11:28 AM
RobertScheitlin__GISP
MVP Emeritus
475 Replies
RobertScheitlin__GISP
MVP Emeritus

Barnaby,

   Nope I have not seen that one... Does it only happen in IE?

0 Kudos
BarnabyRockwell
Deactivated User

Yes.

0 Kudos
BarnabyRockwell
Deactivated User

Note that the Flex 3.7 version of the widget shows the same behavior in IE11.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Barnaby,

   I will have to test in Google Maps and see if they have the same issue with IE 11. Sounds like a css issue on their side.

0 Kudos
BarnabyRockwell
Deactivated User

Robert,

I had assumed that it was a problem on their end... 

Note that the Google navigation tools work properly, they just look weird.

Cheers,

Barnaby

0 Kudos
BarnabyRockwell
Deactivated User

Hi Robert,

Congrats on release of v1.1 of Identify widget!!! 

I cannot get some attributes from a thematic raster layer to display in ID results.

Layer: 3/27/13 - reduced vegetation suppression - AA11 (ID: 2)

In ID widget GUI, the only attribute that shows up from the above layer is Pixel Value, but I need both Pixel Value and MaterialID attributes to show.  Any ideas?

Edit:  However, if I add Layer 0 (topmost layer in REST) to the widget, I do get ID results for all attributes, which is a great start!  Now all I need is to be able to select which attributes to display for each layer.

Untitled.jpg

Best regards,

Barnaby

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Barnaby,

  Just like in Flex the REST endpoint for raster layers does not return any fields but I do know that if it is a raster layer then it will have the "Pixel Value" field, so that is why I had it to the field list for you. If you want more fields added then you will have to manually add then to the config_Identify.json (similar to the way you did in Flex).

0 Kudos
BarnabyRockwell
Deactivated User

Robert,

Ok.  I'll try that. 

Many thanks,

Barnaby

Huge wish:  cool tool to import Flex ID widget XML into WAB config_Identify.json. 

0 Kudos
BarnabyRockwell
Deactivated User

Robert,

Looking good with edited config_Identify.json:

{
"name": "Landsat 8 - AA13 - 2014 Calibration - Mosaic 9",
"url": "http://MyServer/arcgis/rest/services/usminmap/Landsat8/MapServer",
"id": 2,
"zoomscale": "",
"forcescale": false,
"fields": {
"all": false,
"field": [
{
"name": "Value",
"alias": "Pixel value"
},
{
"name": "MaterialID",
"alias": "Material ID"
}
   ]
},
"links": {}
},

However, the "name" field in red above is not holding through to ID results, which only show the REST layer name.

Cheers,

Barnaby

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Barnaby,

   Thanks for reporting this. I will have that fixed in the next release. in the mean time it is a simple one line change you can make your self. In the Widget.js file on line 1026 replace that line with this:

idResult.title = identTitle || identifyResult.layerName;