|
POST
|
Helen, OK I did some simple testing and I had to issue enabling a widget that had it's visibility set to false from inside the MapManager.js. Here is my code (simplified test no user authentication just set a widget to be visible after 5 seconds). ....
_showMap: function(appConfig) {
// console.timeEnd('before map');
console.time('Load Map');
//for now, we can't create both 2d and 3d map
if (appConfig.map['3D']) {
if (appConfig.map.itemId) {
this._show3DWebScene(appConfig);
} else {
this._show3DLayersMap(appConfig);
}
} else {
if (appConfig.map.itemId) {
this._show2DWebMap(appConfig);
} else {
console.log('No webmap found. Please set map.itemId in config.json.');
}
}
setTimeout(
lang.hitch(this, this._checkWidgetVisibility), 5000
);
},
_checkWidgetVisibility: function(){
var widgetCfg = this._getWidgetConfig('Draw');
widgetCfg.visible = true;
if(window._layoutManager.params.urlParams.mode === 'config'){
topic.publish('builder/widgetChanged', widgetCfg);
}else{
topic.publish('widgetChanged', widgetCfg);
}
},
_getWidgetConfig: function(widgetName){
var widgetCnfg = null;
array.some(this.appConfig.widgetPool.widgets, function(aWidget) {
if(aWidget.name == widgetName) {
widgetCnfg = aWidget;
return true;
}
return false;
});
if(!widgetCnfg){
/*Check OnScreen widgets if not found in widgetPool*/
array.some(this.appConfig.widgetOnScreen.widgets, function(aWidget) {
if(aWidget.name == widgetName) {
widgetCnfg = aWidget;
return true;
}
return false;
});
}
return widgetCnfg;
},
....
... View more
10-28-2020
10:37 AM
|
0
|
1
|
2729
|
|
POST
|
Michel, That tells that your line this.tabContainer is not returning an actual jimu/dijit/TabContainer. Now why is whats hard to say. It looks like your module order is correct in your define.
... View more
10-28-2020
05:24 AM
|
0
|
0
|
4455
|
|
POST
|
That tells me that you have to run the geometry through the simplify method first then. https://developers.arcgis.com/javascript/3/jsapi/esri.geometry.geometryengine-amd.html#simplify
... View more
10-28-2020
05:17 AM
|
2
|
0
|
3253
|
|
DOC
|
This is an issue that has been discussed a couple of time here. See this thread for the workaround. https://community.esri.com/docs/DOC-7046-enhanced-locate-widget-version-216-08212020?messageTarget=all&start=150&mode=co…
... View more
10-27-2020
06:08 AM
|
0
|
0
|
12050
|
|
POST
|
Almost. Each ring represents its own closed polygon, not a side of a polygon. So once you have the ring (by looping through the rings) you then get the rings points Each ring is made up of three or more points. You can use the getPoint method of the polygon class to get the specific point. https://developers.arcgis.com/javascript/3/jsapi/polygon-amd.html#getpoint Then make a new Polyline from two points (i.e ring 0 point 0 and point 1) and use that new polyline in the geodesic or planar length method.
... View more
10-27-2020
06:01 AM
|
2
|
2
|
3253
|
|
POST
|
Steve, I just uses a share on my main GIS file server and add the UNC path to the servers data stores (I do not use Portal, this is for ArcGIS Server).
... View more
10-26-2020
12:44 PM
|
1
|
0
|
1466
|
|
POST
|
Kaycee, Highlighting is not working in your app because you have it disabled in your code (highlightEnabled false): var mainView = new MapView({
container: "mainViewDiv",
map: map,
popup: {
highlightEnabled: false,
dockEnabled: true,
dockOptions: {
breakpoint: false,
position: "top-right"
}
},
center: [-75.325395, 40.306275],
zoom: 5
});
... View more
10-23-2020
10:45 AM
|
1
|
1
|
2898
|
|
POST
|
Sure. The way to ensure that the loading shelter appears is call shelter.show() then add a setTimeout for 500 (half a second) and inside the setTimeout function call your actual code.
... View more
10-23-2020
05:51 AM
|
0
|
1
|
2149
|
|
POST
|
No, not at all. You can get the layer object id field using the layers objectIdField property https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#objectIdField Answered in Question 1 Answered in Question 1 All stuff you can find in the documentation.
... View more
10-22-2020
02:24 PM
|
2
|
1
|
4092
|
|
POST
|
Wadson, If you look at otb widget in WAB the way they handle this is to use "jimu/dijit/LoadingShelter" in the Widget.html and just call that object data-dojo-attach-point in the widget.js code like: this.shelter.show(); and this.shelter.hide();
... View more
10-22-2020
10:31 AM
|
0
|
3
|
2149
|
|
POST
|
Michael, Because you are setting the layer definition query to the where clause (which is correct but does not take into account the geometry extent). If you want the layers defintion query to take both the where clause and geometry into account then you have to do something completely different. a layers definition query can not use geometries so you will have do get the Object IDs of all the query results and use that for the layers definition query (i.e. "ObjectId IN(" + oidArray.join(',') + ")". So you eith have to do another query for ids. https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryObjectIds or you need to loop through the results and make an array of ObjectIds from the results.
... View more
10-22-2020
08:16 AM
|
2
|
5
|
4092
|
| 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
|