|
POST
|
Ken, Your css rule is way to UN-specific. By having body, * that means everything gets overflow hidden. You should really be more specific as to what you want to get overflow hidden. For your current css rule you would have to use: body, * {
box-sizing: border-box;
margin: 0;
overflow: hidden;
font-family: 'Open Sans'
}
.esri-ui-inner-container * {
overflow: visible !important;
} because the esri ui containers need to have overflow visible and most things under them as well.
... View more
11-03-2020
06:17 AM
|
0
|
1
|
3142
|
|
POST
|
Ken, This seems to work fine: <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="initial-scale=1, maximum-scale=1,user-scalable=no"
/>
<title>Legend widget | Sample | ArcGIS API for JavaScript 4.17</title>
<link
rel="stylesheet"
href="https://js.arcgis.com/4.17/esri/themes/light/main.css"
/>
<style>
html,
body,
#viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
overflow: hidden;
}
</style>
<script src="https://js.arcgis.com/4.17/"></script>
<script>
require([
"esri/views/MapView",
"esri/widgets/Legend",
"esri/widgets/Expand",
"esri/WebMap"
], function (MapView, Legend, Expand, WebMap) {
var webmap = new WebMap({
portalItem: {
// autocasts as new PortalItem()
id: "05e015c5f0314db9a487a9b46cb37eca"
}
});
var view = new MapView({
container: "viewDiv",
map: webmap
});
view.when(function () {
var legend = new Legend({
view: view,
container: document.createElement('div')
});
var bgExpand = new Expand({
view: view,
content: legend,
expandIconClass: 'esri-icon-legend',
expandTooltip: 'Legend'
});
// Add widget to the bottom right corner of the view
view.ui.add(bgExpand, "bottom-right");
});
});
</script>
</head>
<body class="calcite">
<div id="viewDiv"></div>
</body>
</html>
... View more
11-02-2020
07:23 AM
|
0
|
3
|
3142
|
|
POST
|
Not sure what to tell you then. That is normally the solution for "Access is denied" error.
... View more
11-02-2020
06:57 AM
|
0
|
0
|
1728
|
|
DOC
|
Balazs, Here is a reply where someone asked a similar question and I answered already: https://community.esri.com/docs/DOC-7046-enhanced-locate-widget-version-216-08212020?messageTarget=all&start=150&mode=co…
... View more
11-02-2020
05:51 AM
|
0
|
0
|
12040
|
|
POST
|
The Map object is in the jimu.js MapManager.js file.
... View more
11-01-2020
01:29 PM
|
0
|
0
|
1131
|
|
POST
|
Anna, The way to get around this is to choose to "Run as administrator" when right clicking on the "Command Prompt".
... View more
10-30-2020
02:13 PM
|
0
|
2
|
1728
|
|
POST
|
No there isn't. Just simply add the domClass.add('loadingDiv', 'visible'); before recycleLayer
.queryFeatures(query)
... and remove it in the addToSelect2 method as I mentioned before.
... View more
10-30-2020
11:49 AM
|
1
|
6
|
4738
|
|
POST
|
Jared, You show the div when you right before you execute the query. domClass.add('loadingDiv', 'visible'); and then in your results function (the last one addToSelect2) you hide it.
... View more
10-30-2020
08:09 AM
|
2
|
8
|
4738
|
|
POST
|
Kaycee, The issue was that the basinTypeSelect was null inside the doQuery function. Here is the fix. // for drop down
var basinTypeSelect;
// call doQuery() each time the button is clicked
mainView.when(function () {
mainView.ui.add(widgetPanel, "bottom-left");
document.getElementById("doBtn").addEventListener("click", doQuery);
//Wait for the view to be ready and then the valSelect will be ready too.
basinTypeSelect = document.getElementById("valSelect")
});
// relate to drop-down menu select field ID
var attributeName = document.getElementById("MajBas");
// executes each time the button is clicked
function doQuery() {
// Clear the results from a previous query
resultsLayer.removeAll();
// Build new query
params.where =
"MajBas LIKE" + "'" + basinTypeSelect.value + "'";
// executes query and calls getResults() once promise is resolved
// promiseRejected() is called if the promise is rejected
qTask.execute(params).then(getResults).catch(promiseRejected);
}
... View more
10-30-2020
08:03 AM
|
2
|
1
|
2182
|
|
POST
|
Victor, To resize the popup is not difficult at all but to actually make it resizable at run time. I am afraid that would be quite a bit of effort. https://community.esri.com/thread/183081-wab-change-size-of-edit-popup-window
... View more
10-30-2020
06:43 AM
|
0
|
1
|
1909
|
|
POST
|
Michel, Use the graphicsUtils graphicsextent method esri/graphicsUtils | API Reference | ArcGIS API for JavaScript 3.34
... View more
10-30-2020
06:26 AM
|
0
|
2
|
1542
|
|
DOC
|
True I didn’t consider that. The way that you will have to fix this is to open that file and copy the text into a online JSON linter and find the syntax error in there or just copy that file from your older 2.13 or less version of WAB.
... View more
10-29-2020
02:02 AM
|
0
|
0
|
12040
|
|
POST
|
Michael, That is exactly how I do it in my code and html and it works fine.
... View more
10-28-2020
01:46 PM
|
1
|
4
|
4994
|
|
POST
|
This is the way I do it in my widgets. HTML <input type="radio" data-dojo-attach-point="valueRadio" checked="true" disabled title="${nls.valueTooltip}" />
<label data-dojo-attach-point="valueLabel" title="${nls.valueTooltip}">${nls.value}</label> JS this.valueRadio.checked = false;
... View more
10-28-2020
10:52 AM
|
1
|
8
|
4994
|
| 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
|