|
POST
|
OK, this is what I got working but I am not sure if this is the recommended workflow. componentDidUpdate() {
const {view} = this.state.jimuMapView
let widgetState: WidgetState = getAppStore().getState().widgetsRuntimeInfo[this.props.id].state;
if(widgetState === WidgetState.Closed){
view.map.remove(this.resultLayer);
view.map.remove(this.bufferFeatureLayer);
view.popup.close;
}else if(widgetState === WidgetState.Opened){
view.map.add(this.resultLayer);
view.map.add(this.bufferFeatureLayer);
}
}
... View more
03-24-2021
07:43 AM
|
1
|
0
|
7163
|
|
DOC
|
@Pei-SanTsai , Using file: urls has not been allowed in modern browsers like Chorme for years now. You need to create a Virtual Directory (if using IIS) so that you can have an actual URL (with http or https).
... View more
03-24-2021
07:38 AM
|
0
|
0
|
3953
|
|
POST
|
How do you listen for and execute code in your widget on panel close?
... View more
03-24-2021
07:01 AM
|
1
|
6
|
7207
|
|
POST
|
Darren, Glad to help. Can this be compatible with ArcGIS FeatureCollection? No I got to the api latitude longitude coordinates with my graphic approach. Good continue to use that but add the Point geometry to your graphics and the graphics to the FeatureLayer instead of GraphicsLayer. You can see an example of how to do this in this sample https://developers.arcgis.com/javascript/3/jssamples/fl_featureCollection.html
... View more
03-17-2021
08:43 AM
|
0
|
3
|
3752
|
|
DOC
|
@ForrestBlack As long as the urls that you configure in the widget are identical (CaSe and protocol) to the layers in your webmap, then there should be no issue. From some of your screenshots it looked like you could not get the widget to accept your layer url. So I tried the layer url for the generators map service of yours and got a DNS lookup error from https://blah-blah.com/server/rest/services So are you or are you not seeing the same on your end?..
... View more
03-15-2021
11:12 AM
|
0
|
0
|
21592
|
|
DOC
|
Forest, OK, I thought I saw in your screenshots that you where mixing protocols. What I am now seeing is that there is a DNS look issue with your url of https://blah-blah.com/server/rest/services
... View more
03-15-2021
08:09 AM
|
0
|
0
|
21606
|
|
POST
|
Ester, The way that I handle this in my custom widget is to have a help folder under the widgets main folder and apply this hack to the setting.js of the widget. setConfig:function(config){
//hack the 'Learn more about this widget link'
setTimeout(function(){
var helpLink = dojo.query('.help-link');
helpLink[0].href = this.configWindow.esri._appBaseUrl + 'widgets/eSearch/help/eSearch_Help.htm';
html.setStyle(helpLink[0],'display','block');
},600);
this.config = config;
...
... View more
03-15-2021
07:56 AM
|
0
|
0
|
1564
|
|
POST
|
Rick, Strange. Your should try the 2.13 version of the eSearch to make sure I didn't add something to the 2.17 version that is dependent on WAB 2.17
... View more
03-15-2021
07:26 AM
|
0
|
0
|
2301
|
|
POST
|
By default the LayerList widget does not so GrahicsLayers. If you want your layer to appear in the layer list widget then switch to a FeatureLayer using a FeatureCollection. https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#featurelayer2
... View more
03-15-2021
07:20 AM
|
0
|
0
|
3769
|
|
DOC
|
@ForrestBlack The issue is if the web map is using https then when you configure the layer in the identify widget you have to use the same protocol (i.e. https not http).
... View more
03-15-2021
07:08 AM
|
0
|
0
|
21618
|
|
POST
|
Rick, I have not seen this or have anyone report this so far. I am not to sure why it is happen either but this change to the widget.js file should resolve the issue. _removeSelectionGraphics: function () { //Line 831
this.selectionGL && this.selectionGL.clear();
},
... View more
03-15-2021
07:01 AM
|
0
|
2
|
2304
|
|
POST
|
Michael, As a general rule, use geodesicBuffer if the input geometries have a spatial reference of either WGS84 (wkid: 4326) or Web Mercator. Meaning you should be using buffer and not geodesicBuffer. Also be sure that the input geometries have the spatialReference property with wkid 2039.
... View more
03-15-2021
06:42 AM
|
1
|
0
|
1995
|
|
POST
|
Randall, If you look at the live preview site for this widget you will see that there is no issue at all with the Layer List widget updating based on the layers toggled state... So I am not sure what issue you are encountering.
... View more
03-15-2021
05:55 AM
|
0
|
1
|
3786
|
|
POST
|
Rick, What errors do you see in the web browsers console?
... View more
03-15-2021
05:51 AM
|
0
|
4
|
2306
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-14-2020 11:36 AM | |
| 17 | 05-17-2021 01:51 PM | |
| 1 | 07-06-2020 05:32 AM | |
| 1 | 07-10-2018 05:49 AM | |
| 9 | 01-28-2022 10:58 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-08-2026
06:27 AM
|