|
POST
|
Andrew, I do this with my eSearch widget on my parcel viewer site. The changes are simple. In the Search Widget.js At the end of the _onSelectResult method I add: _onSelectResult: function(e) {
...
// publish select result to other widgets
this.publishData({
'selectResult': e
});
//Dispatch event to have eSearch search for this geometry.
this.publishData({
'target': 'eSearch',
'feature': result.feature
});
}, In my eSearch widget.js I have onReceiveData: function(name, widgetId, data) {
if(data.message && data.message === "Deactivate_DrawTool"){
this.drawBox.deactivate();
}
if(data && data.target && data.target === 'eSearch'){
if(data.feature.geometry.type === "polygon"){
//Ensure a point inside the polygon. The centroid is not gauranteed to be inside the poly
esriConfig.defaults.geometryService.labelPoints([data.feature.geometry], lang.hitch(this, function(labelPoint) {
this.search(labelPoint[0], 0);
}));
}else{
this.search(data.feature.geometry, 0);
}
}
},
... View more
02-04-2021
11:08 AM
|
1
|
3
|
2418
|
|
POST
|
Helen, There is a user community for this https://community.esri.com/t5/web-appbuilder-custom-widgets/tkb-p/web-appbuilder-custom-widgetstkb-board
... View more
01-28-2021
11:36 AM
|
0
|
0
|
878
|
|
POST
|
In WAB Developer you would add those new css rules in the themes style.css
... View more
01-28-2021
11:00 AM
|
0
|
0
|
5190
|
|
POST
|
Sorry I am not a Portal user. So I can't help there.
... View more
01-28-2021
09:47 AM
|
0
|
0
|
5195
|
|
POST
|
Andrew, These are some css rules that would work for that specific application. #uniqName_20_1.jimu-widget-frame.jimu-container {
background-color: black;
}
div#_24_panel {
width: 350px !important;
height: 350px !important;
}
... View more
01-28-2021
05:50 AM
|
0
|
0
|
5216
|
|
POST
|
Michael, You will not be able to get live coordinates for any WKIDs other than 102100 or 4326. Live coordinates requires clientside calculation and there is no OTB support for this. So if your apps web map is using one of the standard esri basemaps then the maps WKID is 102100 and you will not be able to display 2039 coords. But if your web map uses 2039 coords for its basemap then you will be able to display 2039 in the live coordinates widget.
... View more
01-27-2021
01:26 PM
|
0
|
2
|
3206
|
|
POST
|
Michael, Maybe this will help. The only thing I used to figure this out is the help docs. <script>
require([
"esri/geometry/projection",
"esri/geometry/SpatialReference",
"esri/geometry/Point",
"esri/geometry/support/GeographicTransformationStep",
"esri/geometry/support/GeographicTransformation"
], function (projection, SpatialReference, Point, GeographicTransformationStep, GeographicTransformation) {
const cs2 = new SpatialReference({
wkid: 4326
});
const geoStep = new GeographicTransformationStep({
wkid: 108021
});
const geoTrans = new GeographicTransformation({
steps:[geoStep]
});
const pnt = new Point({
x: xxxxx,
y: yyyy,
spatialReference: 2039
});
projection.load().then(function (evt) {
const pGeom = projection.project(pnt, cs2, geoTrans);
});
});
</script>
... View more
01-27-2021
08:00 AM
|
0
|
0
|
7454
|
|
POST
|
Justin, If you are talking about the OTB Draw widget there is a configuration for showing the Perimeter measurement label. https://developers.arcgis.com/web-appbuilder/guide/widget-draw.htm#ESRI_STEP_FDBDCF97C9534A23A0F2973102E6221E
... View more
01-27-2021
05:24 AM
|
0
|
0
|
1407
|
|
POST
|
Michael, This is nothing specific to WAB. There are dozens of answered question about projecting coordinate in the JS API space. Here is one assuming you are still using 3D in WAB. https://community.esri.com/t5/arcgis-api-for-javascript/example-for-projection/m-p/53909#M4778
... View more
01-27-2021
05:12 AM
|
0
|
0
|
7458
|
|
POST
|
Karsten, OK I see what the issue is. The popGrid is getting called before the view has an features in it and because the code is set to query the layer view there are no records to return to the grid. If you change the code to query the actual csv layer and not the layer view then you get the grid with all records of the layer. function popGrid() {
view.graphics.removeAll();
if (csvLayerView) {
const query = {
where: "1=1",
outFields: ["*"]
};
// query graphics from the csv layer view. Geometry set for the query
// can be polygon for point features and only intersecting geometries are returned
//Changed to csvLayer instead of layer view
csvLayer.queryFeatures(query).then(function(results) {
...
... View more
01-25-2021
01:37 PM
|
1
|
1
|
7725
|
|
POST
|
Try dropping back to 4.17. I am having issues with grid in 4.18 too.
... View more
01-25-2021
12:59 PM
|
0
|
3
|
7730
|
|
POST
|
This is not a bug just a limitation. JS API is not designed to do labeling with complex label conflict detection like ArcGIS Desktop is. If you need better conflict avoidance then you need to do the labeling in the map service in Desktop and consume that labeled map service in your JS API app.
... View more
01-21-2021
05:30 AM
|
1
|
1
|
6028
|
|
DOC
|
@RichardReinicke That is not how this widget is developed to work. At runtime the only thing that will display in the "Identify From" drop down are layers that have been configured with the Add Identify Layer button in the widgets settings.
... View more
01-20-2021
07:39 AM
|
0
|
0
|
22212
|
| 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
|