|
POST
|
Victor, You will have to edit the jimu/utils.js mo.getDefaultPortalFieldInfo function. //return {fieldName,label,tooltip,visible,format,stringFieldOption}
mo.getDefaultPortalFieldInfo = function(serviceFieldInfo){
//serviceFieldInfo: {name,alias,type,...}
var fieldName = serviceFieldInfo.name;
var item = {
fieldName: fieldName,
label: serviceFieldInfo.alias || fieldName,
tooltip: '',
visible: false,
format: null,
stringFieldOption: 'textbox'
};
//https://developers.arcgis.com/javascript/jsapi/field-amd.html#type
var type = serviceFieldInfo.type;
switch (type) {
case 'esriFieldTypeSmallInteger':
case 'esriFieldTypeInteger':
item.format = {
places: 0,
digitSeparator: true
};
break;
case 'esriFieldTypeSingle':
case 'esriFieldTypeDouble':
item.format = {
places: 2,
digitSeparator: true
};
break;
case 'esriFieldTypeDate':
item.format = {
dateFormat: "longMonthDayYearLongTime"
};
break;
}
return item;
}; Notice I have added LongTime to the dateFormat.
... View more
11-30-2020
06:19 AM
|
0
|
2
|
1445
|
|
POST
|
Michael, This will require you to read the suggestions to possible solution in this thread and determine how you will implement the suggestions. https://community.esri.com/t5/arcgis-web-appbuilder-questions/refreshing-web-appbuilder/m-p/104317 I would not specifically at this reply. https://community.esri.com/t5/arcgis-web-appbuilder-questions/refreshing-web-appbuilder/m-p/104317/highlight/true#M3126
... View more
11-23-2020
06:33 AM
|
1
|
0
|
1966
|
|
POST
|
Seth, Using either Proxy does not require any experience in that language. The Proxy is a already build and configurable web application. All you have to know is how to deploy a web application to your web server. If your web server is IIS then you should just stick with the .Net proxy. Look in the proxies readme.md file for how to set it up and test the proxy using the ping url. https://github.com/Esri/resource-proxy/blob/master/DotNet/README.md The only file you alter is the proxy.config. In there I have this <serverUrl url="https://maps.disasters.nasa.gov" matchAll="true" /> In my JS Development environment I have a C:\JS_Workspace setup as a virtual directory in IIS that allows me to run any html page from that location using my development machine url or localhost inside the C:\JS_Workspace I have the proxy folder with the proxy.ashx, proxy.config, etc. Because I have my xyz.html inside the C:\JS_Workspace and the proxy folder is also under C:\JS_Workspace then the code I provided earlier just works (no CORs errors).
... View more
11-23-2020
06:20 AM
|
1
|
1
|
4869
|
|
POST
|
OK, so it is an issue which how you are proxing then. Here is my code that works fine: <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<title>MapImageLayer - set renderers on sublayers - 4.17</title>
<link rel="stylesheet" href="https://js.arcgis.com/4.17/esri/css/main.css">
<script src="https://js.arcgis.com/4.17/"></script>
<style>
html,
body,
#viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>
<script>
require([
"esri/Map",
"esri/views/MapView",
"esri/layers/MapImageLayer",
"esri/core/urlUtils",
"dojo/domReady!"
],
function(
Map, MapView, MapImageLayer, urlUtils
) {
urlUtils.addProxyRule({
urlPrefix: "maps.disasters.nasa.gov",
proxyUrl: "proxy/proxy.ashx"
});
var layer = new MapImageLayer({
url: "https://maps.disasters.nasa.gov/ags04/rest/services/ca_fires_202008/sentinel2/MapServer",
sublayers: [
{
id: 549
}]
});
var map = new Map({
basemap: "dark-gray",
layers: [layer]
});
var view = new MapView({
container: "viewDiv",
map: map,
zoom: 6,
center: [-83.114, 36.921]
});
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html>
... View more
11-20-2020
01:54 PM
|
1
|
4
|
4910
|
|
POST
|
One big issue I see is that you are trying to access a a MapImageLayer using a map service sublayer url. export const SC2Sept29 = new MapImageLayer({
url: 'https://maps.disasters.nasa.gov/ags04/rest/services/ca_fires_202008/sentinel2/MapServer/547',
}); It should look like this: export const SC2Sept29 = new MapImageLayer({
url: 'https://maps.disasters.nasa.gov/ags04/rest/services/ca_fires_202008/sentinel2/MapServer',
}); Notice no sublayer 547 in the url.
... View more
11-20-2020
12:11 PM
|
0
|
6
|
6324
|
|
POST
|
Out of hundreds of users no one has reported this type of issue. What Identify tool are you using (i.e. point, extent, etc)?
... View more
11-20-2020
06:12 AM
|
0
|
2
|
2489
|
|
POST
|
Rex, The "turn all layers on" menu option only turns parent layers on it does not alter sublayer visibility.
... View more
11-19-2020
12:35 PM
|
1
|
0
|
3130
|
|
POST
|
James, So what happen in the background of the eSearch is a query task is executed on the REST service. You can manually query a service by clicking on the query operation link at the bottom of your REST service page. When I execute this query https://services1.arcgis.com/hGdibHYSPO59RG1h/ArcGIS/rest/services/L3_TAXPAR_POLY_ASSESS_gdb/FeatureServer/0/query?where=Town_ID+%3D+277+AND+OWNER1+LIKE+%27%25smith%25%27&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&resultType=none&distance=0.0&units=esriSRUnit_Meter&returnGeodetic=false&outFields=*&returnGeometry=true&returnCentroid=false&featureEncoding=esriDefault&multipatchOption=xyFootprint&maxAllowableOffset=&geometryPrecision=&outSR=102100&datumTransformation=&applyVCSProjection=false&returnIdsOnly=false&returnUniqueIdsOnly=false&returnCountOnly=false&returnExtentOnly=false&returnQueryGeometry=false&returnDistinctValues=false&cacheHint=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&having=&resultOffset=&resultRecordCount=&returnZ=false&returnM=false&returnExceededLimitFeatures=true&quantizationParameters=&sqlFormat=none&f=pjson&token= Which is a simple query using Town_ID = 277 AND OWNER1 LIKE '%smith%' it takes approximately 99 seconds to execute. 2,528,552 records is just a very large dataset to query. One way you could speed this up is to have a nightly (or some scheduled) routine to make a separate service for the county of interest.
... View more
11-18-2020
05:54 AM
|
0
|
0
|
2342
|
|
POST
|
James, Have you tried this search in the browser just using the rest end point to see if the time needed to perform the search is just due to the speed of your service?
... View more
11-17-2020
09:25 AM
|
0
|
1
|
2366
|
|
POST
|
Evan, Your issue is that the way you have your code every time the layer is done updating it will zoom to the features extent. If you are wanting this to only happen initially them you need to remove the event handler or you could use watch utils to use the whenfalseonce method https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#whenFalseOnce So something like this: var handle = layerView.watch("updating", function(val) {
// wait for the layer view to finish updating
if (!val) {
layerView.queryExtent().then(function(response) {
//remove the layer updating watch handler
handle.remove();
// go to the extent of all the graphics in the layer view
view.goTo(response.extent);
});
}
});
... View more
11-16-2020
09:05 AM
|
1
|
0
|
1730
|
|
POST
|
There is no option for this and I can not recommend a code change for this as it would be a pretty big change.
... View more
11-16-2020
06:14 AM
|
0
|
0
|
930
|
|
POST
|
You would have to more the eSearch widget or your layerToggleButton widget to a different widget group. What i mean by this is if you are using the default foldable theme and have the eSearch in an on screen widget placeholder and the layertoggle button(s) also in an onscreen widget place holder, then only one widget in the onscreen widget place holder can be open at a time so the toggle would close the eSearch. But if you had the eSearch or the Toggle button in the header controller and the other in an onscreen widget place holder slot then you problem is solved.
... View more
11-16-2020
06:13 AM
|
0
|
3
|
1989
|
|
POST
|
James, Recommendations: Do not put WAB in your my documents folder. Make sure to not use folder names with spaces in them Try another browser like Chrome or FireFox. Here is what my install location looks like: C:\web-appbuilder-2.17\startup.bat
... View more
11-10-2020
12:45 PM
|
0
|
1
|
2610
|
|
POST
|
Norm, One Issue I see if that you have chosen these two options: Enable Buffer Graphic by default: true Show Buffer Graphic options: false So what this does is buffers any graphical selection by 50 feet (in your case). I am not sure if that is the issue, but that is a unusual configuration.
... View more
11-10-2020
10:25 AM
|
0
|
1
|
1438
|
| 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
|