|
POST
|
Ben, Your only issue is you are trying to chain an event listener and that is incorrect. Here is what you need: const mySlider = new Slider({
// container: "sliderDiv",
min: 0,
max: 1,
steps: .05,
values: [1],
snapOnClickEnabled: true,
visibleElements: {labels: true,
rangeLabels: true}
})
mySlider.on('thumb-drag', index => console.log(index));
... View more
09-01-2020
10:58 AM
|
2
|
1
|
3430
|
|
POST
|
Vic, If you are asking about 4.x then just add a watch on the views scale property and change the layers def expr based on that.
... View more
09-01-2020
09:51 AM
|
0
|
0
|
1411
|
|
POST
|
Arne, In the ConfigManager.js you can get the user by adding this line (line 30): _onAppConfigSet: function(c){
//summary:
// this method may be called by builder or UT
c = jimuUtils.reCreateObject(c);
window.appInfo.isRunInMobile = jimuUtils.inMobileSize();
this.configLoader.processProxy(c);
this.configLoader.addNeedValues(c);
this.configLoader.loadAndUpgradeAllWidgetsConfig(c).then(lang.hitch(this, function(c){
this._addDefaultValues(c);
tokenUtils.setPortalUrl(c.portalUrl);
window.portalUrl = c.portalUrl;
if(this.appConfig){
//remove the options that are relative to map's display when map is changed.
jimuUtils.deleteMapOptions(c.map.mapOptions);
this.appConfig = c;
this._deleteDataSourcesFromMap();
topic.publish('appConfigChanged', this.getAppConfig(), 'resetConfig', c);
}else{
this.appConfig = c;
var portal = portalUtils.getPortal(c.portalUrl);
portal.loadSelfInfo().then(lang.hitch(this, function(portalSelf){
this.portalSelf = portalSelf;
console.info(this.portalSelf.user.username);
topic.publish("appConfigLoaded", this.getAppConfig());
}));
}
}));
},
... View more
09-01-2020
07:09 AM
|
0
|
2
|
1497
|
|
DOC
|
OK. Here is the fix for the AT Widget sizing issue then. I forgot someone else had this exact issue a while back and I already found the fix. https://community.esri.com/docs/DOC-7355-popup-panel-widget-version-213-102519?messageTarget=all&start=525&mode=comments#comment-86545
... View more
08-31-2020
01:59 PM
|
0
|
0
|
22125
|
|
DOC
|
Amy, I have seen this before and it is a side affect of having the AT Widget configured to be open at startup and having the popup panel widget close on startup in jewlerybox theme. I don't have a solution for this right now.
... View more
08-31-2020
01:17 PM
|
0
|
0
|
22125
|
|
DOC
|
Amy, So you are say that you are using the popup panel widget in the tab theme in 2.16 and are having an issue with it not opening the widget?
... View more
08-31-2020
10:10 AM
|
0
|
0
|
22125
|
|
POST
|
No, not at all. What I am saying is that when you add a ArcGISDynamicMapServiceLayer to a map that the rendering is done on the server and an image (not clientside graphics) is returned to the JS API. Thus the server has no issue drawing these complex composite fills. A FeatureLayer is drawn clientside and use the JS API for all it's rendering and thus is limited in several ways that the server is not. You code above is still trying to apply the renderer to a FeatureLayer and you will continue to have the same issue as before.
... View more
08-31-2020
06:33 AM
|
2
|
0
|
1793
|
|
POST
|
Segev, Most likely the difference you are seeing there is that the layer is being rendered server side (using ArcObject) verses you attempting to render clientside using the JS API (i.e. a ArcGISDynamicMapServiceLayer vs. FeatureLayer). To see this add the url as ArcGISDynamicMapServiceLayer in your app and you will see all the symbology just fine.
... View more
08-31-2020
05:38 AM
|
2
|
2
|
1793
|
|
POST
|
Segev, There is some hatching symbology that is not supported on ArcGIS server services and normally you are warned of this when you publish the service.
... View more
08-31-2020
04:30 AM
|
0
|
4
|
5762
|
|
POST
|
Matt, In the Widget.js make these changes (lines 23-26): _bindEvents: function() {
//init first focusable node
// jimuUtils.initFirstFocusNode(this.domNode, this.drawBox.pointIcon);
//bind DrawBox
this.own(on(this.drawBox, 'icon-selected', lang.hitch(this, this._onIconSelected)));
this.own(on(this.drawBox, 'DrawEnd', lang.hitch(this, this._onDrawEnd)));
//bind symbol change events
this.own(on(this.pointSymChooser, 'change', lang.hitch(this, function() {
this._setDrawDefaultSymbols();
})));
this.own(on(this.lineSymChooser, 'change', lang.hitch(this, function() {
this._setDrawDefaultSymbols();
})));
this.own(on(this.fillSymChooser, 'change', lang.hitch(this, function() {
this._setDrawDefaultSymbols();
})));
this.own(on(this.textSymChooser, 'change', lang.hitch(this, function() {
this._setDrawDefaultSymbols();
})));
this.fillSymChooser.fillColor.setColor(new Color([255,255,0,0.25]));
this.fillSymChooser.fillAlpha.setAlpha(0.25);
this.fillSymChooser.fillOutlineColor.setColor(new Color([255,0,0]));
this.fillSymChooser.fillOutlineWidth.setValue = 2;
//bind unit events
// this.own(on(this.showMeasure, 'click', lang.hitch(this, this._setMeasureVisibility)));
//bind UndoManager events
this.own(on(this._undoManager, 'change', lang.hitch(this, this._onUndoManagerChanged)));
}, Make these define changes at the top of the widget.js code (line 7 added and line 22 changed): ...
'jimu/utils',
'jimu/dijit/ToggleButton',
'jimu/SpatialReference/wkidUtils',
'jimu/LayerInfos/LayerInfos',
'jimu/dijit/LoadingIndicator',
'esri/Color',
'jimu/dijit/DrawBox',
'jimu/dijit/SymbolChooser',
'jimu/dijit/ColorPicker',
'jimu/dijit/formSelect',
'dijit/form/NumberSpinner'
],
function(declare, _WidgetsInTemplateMixin, BaseWidget, on, keys, Deferred, dojoI18n, esriNlsBundle,
html, lang, array, domStyle,
esriConfig, Graphic, Polyline, Polygon, TextSymbol, Font, esriUnits, webMercatorUtils,
EsriProjectParameters,
EsriSpatialReference,
EsriRequest,
geodesicUtils, GeometryService, AreasAndLengthsParameters, LengthsParameters, UndoManager,
OperationBase, GraphicsLayer, FeatureLayer, ViewStack, jimuUtils, ToggleButton, wkidUtils, LayerInfos,
LoadingIndicator, Color) {
...
... View more
08-30-2020
12:21 PM
|
3
|
2
|
2716
|
|
POST
|
Ashok, This is the JS API space and it sounds like you are asking about Web App Builder or Experience Builder... Is that the case?
... View more
08-30-2020
11:29 AM
|
0
|
0
|
4433
|
|
POST
|
John, I don't think that esri will create such low level layout/form elements. That is completely on the individual developer.
... View more
08-28-2020
10:37 AM
|
2
|
0
|
2987
|
| 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
|