|
POST
|
Norm, Can you give me a step by step use case for me to use on your site link, that is having and issue with a "By Spatial" search?
... View more
11-10-2020
06:19 AM
|
0
|
3
|
1439
|
|
POST
|
James, BTW, can there be multiple instance of WAB-DEV on my laptop- one for each client? I have not personally tried but based on my knowledge it should be possible. I personally have WAB versions going back to 1.0 on my development Laptop. That way I can test any old version when answering people questions. Because each WAB instance will have it's own siginininfo.json you should be able to have as many same versions as you want each registered with a separate AGOL org. Am I correct in thinking that the application (with the custom widget) can be on any web facing server?, preferably the client's own web server. Correct.
... View more
11-10-2020
06:15 AM
|
0
|
3
|
2611
|
|
POST
|
Just watch the tracking property https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#tracking
... View more
11-09-2020
09:11 AM
|
0
|
0
|
1465
|
|
POST
|
Alex, It appears that you are adding this in the createLayer method in the MapManager.js. That function is only used if your are in a 3D App. If you are in a 2D app then you have to add it to the _show2DWebMap method and add the 'esri/layers/ArcGISDynamicMapServiceLayer' require to the MapManagers reguire array AND Specify your layer is an operational layer (line 80). _show2DWebMap: function(appConfig) {
//should use appConfig instead of this.appConfig, because appConfig is new.
// if (appConfig.portalUrl) {
// var url = portalUrlUtils.getStandardPortalUrl(appConfig.portalUrl);
// agolUtils.arcgisUrl = url + "/sharing/content/items/";
// }
if(!appConfig.map.mapOptions){
appConfig.map.mapOptions = {};
}
var mapOptions = this._processMapOptions(appConfig.map.mapOptions) || {};
mapOptions.isZoomSlider = false;
var webMapPortalUrl = appConfig.map.portalUrl;
var webMapItemId = appConfig.map.itemId;
var webMapOptions = {
mapOptions: mapOptions,
bingMapsKey: appConfig.bingMapsKey,
usePopupManager: true
};
if(!window.isBuilder && !appConfig.mode && appConfig.map.appProxy &&
appConfig.map.appProxy.mapItemId === appConfig.map.itemId) {
var layerMixins = [];
array.forEach(appConfig.map.appProxy.proxyItems, function(proxyItem){
if (proxyItem.useProxy && proxyItem.proxyUrl) {
layerMixins.push({
url: proxyItem.sourceUrl,
mixin: {
url: proxyItem.proxyUrl
}
});
}
});
if(layerMixins.length > 0) {
webMapOptions.layerMixins = layerMixins;
}
}
var mapDeferred = this._createWebMapRaw(webMapPortalUrl, webMapItemId, this.mapDivId, webMapOptions);
mapDeferred.then(lang.hitch(this, function(response) {
var map = response.map;
//hide the default zoom slider
map.hideZoomSlider();
// set default size of infoWindow.
map.infoWindow.resize(270, 316);
//var extent;
map.itemId = appConfig.map.itemId;
map.itemInfo = response.itemInfo;
map.webMapResponse = response;
// enable snapping
var options = {
snapKey: keys.copyKey
};
map.enableSnapping(options);
html.setStyle(map.root, 'zIndex', 0);
map._initialExtent = map.extent;
this.layerInfosObj = LayerInfos.getInstanceSyncForInit(map, map.itemInfo);
//save layer's original refreshInterval
this.layerInfosObj.getLayerInfoArrayOfWebmap().forEach(function(layerInfo) {
layerInfo.getLayerObject().then(lang.hitch(this, function(layerObject){
if(layerObject){
lang.setObject("_wabProperties.originalRefreshinterval", layerObject.refreshInterval, layerObject);
}
}), lang.hitch(this, function(err){
console.error("can't get layerObject", err);
}));
}, this);
//BJ Start
var streetURL = "https://atlasgis.carson.ca.us/carsonserver/rest/services/Aerials_MIL1/MapServer/0";
var streetLayer = new ArcGISDynamicMapServiceLayer(streetURL);
streetLayer.isOperationalLayer = true;
map.addLayer(streetLayer);
//BJ End
...
... View more
11-09-2020
05:35 AM
|
0
|
1
|
2119
|
|
POST
|
James, Give this a go: style.css .widget-esearch .esearch-result-download-button{
position: absolute;
right: 24px;
height: 6px;
line-height: 0;
font-size: 8pt;
padding: 8px;
} Widget.html (line 6) ...
<div class="search-tab-node-hidden" data-dojo-attach-point="tabNode4" style="overflow: hidden;">
<div data-dojo-attach-point="progressbar"></div>
<div data-dojo-attach-point="divResultMessage" class="esearch-noResults"></div>
<div class="popup-menu-button esearch-result-action-button" data-dojo-attach-event="click:_onBtnMenuClicked" data-dojo-attach-point="divOptions" title="${nls.resultactions}" style="display:none;"></div>
<div class="esearch-result-download-button search-btn" data-dojo-attach-point="divDownload" title="Download Data" style="display:none;">Download Data</div>
<div data-dojo-attach-point="listDiv"></div>
<label data-dojo-attach-point="divSum" class="esearch-sum" style="display:none;"></label>
</div>
... Widget.js //Search for
html.setStyle(this.divOptions, 'display', 'block');
//and add this line after it
html.setStyle(this.divDownload, 'display', 'block');
//search for this
html.setStyle(this.divOptions, 'display', 'none');
//and add this line after it
html.setStyle(this.divDownload, 'display', 'none'); The click event is on you.
... View more
11-05-2020
11:51 AM
|
2
|
1
|
1265
|
|
DOC
|
Balazs, Not sure how that code has anything to with my widget... But in the code above you need to project the geometry to your desired wkid. So you need to use the Geometry service project method as shown in the code I referenced earlier. esriConfig.defaults.geometryService.project(projParams, lang.hitch(this, function(results){ https://developers.arcgis.com/javascript/3/jsapi/geometryservice-amd.html#project
... View more
11-05-2020
07:06 AM
|
0
|
0
|
12031
|
|
POST
|
Michael, Here is some code that shows that. This full widget code is the otb Legend widget modified. define([
'dojo/_base/declare',
'jimu/BaseWidget',
'esri/widgets/Legend',
'jimu/WidgetManager',
'dojo/_base/html'
], function(declare, BaseWidget, Legend, WidgetManager, html) {
var clazz = declare([BaseWidget], {
name: 'Legend',
baseClass: 'jimu-widget-legend',
templateString: "<div><div data-dojo-attach-point='legendDiv'></div></div>",
abc: null,
postCreate: function(){
this.inherited(arguments);
this.legend = new Legend({
container:this.legendDiv,
view:this.sceneView
});
},
destroy: function(){
if(!!this.legend){
this.legend.destroy();
}
this.inherited(arguments);
},
onOpen: function(){
var parentWid = html.getAttr(this.domNode, 'widgetId');
var iconNode = this.getAnchorbarControllerNode(parentWid);
this.parentContainer = iconNode;
html.setAttr(this.parentContainer.tooltipDialog, 'content', "Legend Widget New Title");
var panel = this.getPanel();
html.setAttr(panel.titleLabelNode, 'innerHTML', "Legend Widget New Title");
},
getAnchorbarControllerNode: function(id) {
this.abc = WidgetManager.getInstance().getWidgetsByName("AnchorBarController")[0];
return this.abc._getIconItemById(id);
},
onClose: function(){
html.setAttr(this.parentContainer.tooltipDialog, 'content', "Legend");
html.setAttr(this.getPanel().titleLabelNode, 'innerHTML', "Legend");
}
});
return clazz;
});
... View more
11-05-2020
06:57 AM
|
0
|
1
|
2112
|
|
POST
|
Jared, Sure here is what you are looking for: function addToSelect2(values) {
while (keyTypeSelect.options.length > 0) {
keyTypeSelect.remove(0)
}
var dOpt2 = document.createElement("option");
dOpt2.value = "";
dOpt2.disabled = true;
dOpt2.selected = true;
dOpt2.text = "Select one";
keyTypeSelect.add(dOpt2);
values.sort();
values.forEach(function (value) {
var option = document.createElement("option");
option.text = value;
keyTypeSelect.add(option);
});
//If there is only on value then select it.
if(values.length === 1){
keyTypeSelect.value = values[0];
}
return true;
}
... View more
11-04-2020
09:52 AM
|
1
|
0
|
1477
|
|
POST
|
Michael, widget-window-title and also in the widgets-group-panel Can you provide a screenshot to better explain?
... View more
11-04-2020
05:21 AM
|
0
|
3
|
2112
|
|
POST
|
Florian, Check you browsers zoom. Resetting it to 100% will fix this issue. Ctrl & + will zoom in and Ctrl & - zooms out.
... View more
11-03-2020
10:19 AM
|
0
|
3
|
1977
|
|
POST
|
function setDefinitionExpression() {
domClass.add('loadingDiv', 'visible'); //add loadingDiv
...
function queryForGeometries() {
console.log("Running query");
var rQuery = recycleLayer.createQuery();
return recycleLayer.queryFeatures(rQuery).then(function (response) {
rGeometries = response.features.map(function (feature) {
return feature.geometry;
});
domClass.remove('loadingDiv', 'visible'); //remove loadingDiv
return rGeometries;
});
}
... View more
11-03-2020
09:32 AM
|
1
|
1
|
4733
|
|
POST
|
cadgis, Just add this css rule: .esri-coordinate-conversion__select-row option[value="dd"],
[value="ddm"],[value="dms"],[value="mgrs"],[value="usng"]
,[value="utm"]{
display: none;
}
... View more
11-03-2020
08:48 AM
|
2
|
1
|
2437
|
|
POST
|
Jared, Can you post your full code so I can see what you have done?
... View more
11-03-2020
07:35 AM
|
0
|
3
|
4733
|
|
POST
|
GIS User, Not sure what you are talking about, registering WABD with Portal Does not Lock any folder.
... View more
11-03-2020
06:21 AM
|
0
|
1
|
1746
|
| 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
|