|
DOC
|
Kiro, This widget is only currently developed for the English language. to add support for another language you will have to follow the instructions in this link: Add i18n support—ArcGIS Web AppBuilder (Developer Edition) | ArcGIS for Developers
... View more
08-27-2020
02:30 PM
|
0
|
0
|
20825
|
|
POST
|
Mattias, When using dojo dijits in your widgets template you need to use a Mixin in your code. define(['dojo/_base/declare', 'jimu/BaseWidget', 'dijit/_WidgetsInTemplateMixin', 'dijit/form/NumberSpinner'],
function(declare, BaseWidget, _WidgetsInTemplateMixin) {
//To create a widget, you need to derive from BaseWidget.
return declare([BaseWidget, _WidgetsInTemplateMixin], {
...
... View more
08-27-2020
07:57 AM
|
1
|
2
|
1871
|
|
POST
|
I am not sure if I can make it any simpler [install dir]\server\apps\[app#]\configs\query\config__#.json For example: C:\WebAppBuilderForArcGIS\server\apps\2\configs\query\config__5.json
... View more
08-27-2020
05:49 AM
|
0
|
0
|
4967
|
|
POST
|
Here is a sample that shows that. <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="initial-scale=1,maximum-scale=1,user-scalable=no"
/>
<title>
Intro to MapView - Create a 2D map | Sample | ArcGIS API for JavaScript
4.16
</title>
<style>
html,
body,
#viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>
<link
rel="stylesheet"
href="https://js.arcgis.com/4.16/esri/themes/light/main.css"
/>
<script src="https://js.arcgis.com/4.16/"></script>
<script>
require(["esri/Map",
"esri/views/MapView",
"esri/tasks/QueryTask",
"esri/tasks/support/Query"],
function (
Map,
MapView,
QueryTask,
Query) {
var map = new Map({
basemap: "topo-vector"
});
var view = new MapView({
container: "viewDiv",
map: map,
zoom: 4,
center: [15, 65] // longitude, latitude
});
var queryTask = new QueryTask({
url: "https://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/World_Countries_(Generalized)/FeatureServer/0"
});
var query = new Query();
query.returnGeometry = false;
query.outFields = ["COUNTRY"];
view.on("click", function(evt){
query.geometry = evt.mapPoint;
// When resolved, returns country name.
queryTask.execute(query).then(function(results){
console.log(results.features[0].attributes.COUNTRY);
});
});
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html>
... View more
08-27-2020
05:45 AM
|
1
|
1
|
2837
|
|
POST
|
By submitting a "Idea" to ArcGIS Ideas and or contacting esri tech support.
... View more
08-26-2020
12:00 PM
|
2
|
0
|
2044
|
|
POST
|
Michael, Unfortunately you guys are talking about two different things here. You are wanting to use the generate method on the API and that has a limit that is not configurable by you the end user. What Henry is talking about is a query of a layer on AGOL or ArcGIS Server (nothing to do with using a zipped shapefile).
... View more
08-26-2020
09:14 AM
|
2
|
2
|
3669
|
|
POST
|
M Torres, Hmm.. Not sure what else to add. In your new app app (i.e. [install dir]\server\apps\[app#]) you overwrite the configs/query/config_Query.json (or it could be something like config__#.json) with the similar file in the old app.
... View more
08-26-2020
09:06 AM
|
1
|
2
|
4967
|
|
POST
|
Not really. If you want to move to the next generation then don't look at WAB anymore and start using Experience Builder (which is all 4.x API, both 2D and 3D).
... View more
08-26-2020
07:29 AM
|
1
|
0
|
1595
|
|
POST
|
Michael, My suggestion is to start looking for a JS library for shapefiles. I know there where a couple of them years ago. Using one of them clientside you can read and create a featurelayer clientside and get past your feature limit issue. But this is a not something others will be able to provide help with as I have seen little to no discussion of this on esri forums for the last 10 or more years.
... View more
08-26-2020
07:28 AM
|
0
|
0
|
2307
|
|
POST
|
Indika, The view on click event already ha s a mapPoint property which is a Point geometry. So you code should look like this: view.on("click", evt=> { console.log(evt.mapPoint.latitude); console.log(evt.mapPoint.longitude); });
... View more
08-26-2020
05:45 AM
|
0
|
0
|
1150
|
|
POST
|
Damon, WAB 2D apps are using the 3.x JS API and 3D apps use the 4.x API.
... View more
08-25-2020
05:56 AM
|
1
|
2
|
1595
|
|
POST
|
Alexis, Yes that is normal and has been that way for a long time. The config.json file in the widgets folder is the default settings file for the widget and then when you make changes to the widgets settings then the app stores those changes in the apps configs folder. The way to access the widgets config file is to use this.config just like you have been. If the user has made and widget settings changes then the file that is accessed is the one in the apps configs folder, if not the the widgets default config.json will be used automatically. The way that you know which file to look for manually is in the apps main config.json file each widget is listed with the configuration path/file that it uses.
... View more
08-25-2020
05:22 AM
|
1
|
1
|
2929
|
|
DOC
|
Kiro, No, you need to contact your local esri dealer/representative for your country and see if they can help you work out why you can not get WAB working.
... View more
08-25-2020
05:14 AM
|
0
|
0
|
20825
|
| 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
|