|
POST
|
I use the select from the jimu-ui . Here is my question. I have a clear button to enable the user to reset all the controlled components on the ui to their original state. I am using the placeholder for the select. How do I display the placeholder value when the clear button is pressed? I can use the setState to return the Select to its original value, but not the placeholder text on the display. Use of the ref won't help since it doesn't re-render.
... View more
12-02-2022
12:22 PM
|
0
|
1
|
2067
|
|
POST
|
THank you. I got this error. Question. Should we use the componentDidMount to update the jimuMapView state to avoid async errors?
... View more
11-28-2022
06:22 PM
|
0
|
1
|
5090
|
|
POST
|
@RobertScheitlin__GISP After I was passing the jimuMapView.view to the the child component <div>{<ChildComponent mapView={this.state.jimuMapView.view} />}</div> I am getting the error "Cannot read properties of null (reading 'view')" at runtime. of the line above. It seems that there is async error. The 'this.state.jimuMapView' seems to be null. To address it, I used this from the FeaturePanel, to no avail: activeViewChangeHandler = (jimuMapView: JimuMapView) => {
if (null === jimuMapView || undefined === jimuMapView) {
this.setState({ jimuMapView: null });
return; //skip null
}
this.setState({ jimuMapView: jimuMapView });
}; How can the rendering of the component be delayed until the jimuMapView is not null.
... View more
11-28-2022
03:45 PM
|
0
|
3
|
5097
|
|
POST
|
Yes, you are correct. What a novice mistake. Thank you.
... View more
11-23-2022
08:01 AM
|
0
|
0
|
5114
|
|
POST
|
THank you. I followed the first method I am almost there. In the child component, I console log the and I get this: I want to access the this.props.mapView.view which it is a property because under it is the map module. However, when I console log I get the red underline that the view is not a property of the mapView, however the console outputs the x coordinate. Why does it works? I was able to add a layer using the this.props.mapView.view.map.add This is confusing. Thank you.
... View more
11-22-2022
06:09 PM
|
0
|
0
|
5126
|
|
POST
|
Hello. A React newbie here. I have a long script and for the purpose of managing the code I split it to different components. I have the widget (parent) component that I store the selected map in the jimuMapView. Then, I have the children components that need to use the props of the jimuMapView so they add layers and graphics to that map, or other actions like zoom and so forth. So, my question is how in the children components I can access the jimuMapView from the parent to add the layers? None of the documentation or examples in ESRI address this scenario. @RobertScheitlin__GISP , @Grant-S-Carroll or anyone else? Thank you.
activeViewChangeHandler = (jmv: JimuMapView) => {
if (jmv) {this.setState({ jimuMapView: jmv }); }
};
<div className="widget-addLayers jimu-widget p-2">
{this.props.hasOwnProperty("useMapWidgetIds") &&
this.props.useMapWidgetIds &&
this.props.useMapWidgetIds[0] && (
<JimuMapViewComponent
useMapWidgetId={this.props.useMapWidgetIds?.[0]}
onActiveViewChange={this.activeViewChangeHandler}
/>
)}
... View more
11-22-2022
10:39 AM
|
0
|
8
|
5166
|
|
POST
|
Newbie with React. I have a long code so I split it to different components. I have the main widget.tsx component and I imported another component PMtoXY to it. import PMtoXY from "./PMtoXY"; In the widget, I defined the jimuMapView to access the selected map (script below). In the PMtoXY, I defined a feature layer and want to add it to the map. How do I access the current state of the jimuMapView in the PMtoXY? import {
JimuMapViewComponent,
JimuMapView,
} from "jimu-arcgis";
=====
interface IState {
jimuMapView: JimuMapView;
----
----
state = {
jimuMapView: null,
-----
----
activeViewChangeHandler = (jmv: JimuMapView) => {
if (jmv) {
this.setState({ jimuMapView: jmv });
}
};
------
-----
render() {
return (
<div className="widget-addLayers jimu-widget p-2">
{this.props.hasOwnProperty("useMapWidgetIds") &&
this.props.useMapWidgetIds &&
this.props.useMapWidgetIds[0] && (
<JimuMapViewComponent
useMapWidgetId={this.props.useMapWidgetIds?.[0]}
onActiveViewChange={this.activeViewChangeHandler}
/>
)}
--------
--------
... View more
11-18-2022
12:59 PM
|
0
|
1
|
1630
|
|
POST
|
In my case, the description is first entered before I publish the service in ArcGIS Pro. Once I entered the description in ArcGIS Pro the description appears after I publish it in the REST service. Do you follow the same workflow?
... View more
11-08-2022
08:28 AM
|
1
|
1
|
824
|
|
POST
|
For anyone who may have the same question, this is what I did I placed my data folder under the src/runtime and instead of fetch, I used import data from "./data/info.json"; If you run into issues accessing your json file, then add this: const loadedData = JSON.stringify(data);
const json = JSON.parse(loadedData);
... View more
11-02-2022
10:55 AM
|
0
|
0
|
1143
|
|
POST
|
What's the recommendation to where to place a json file in the ExB file structure and how to access it with the local pathname. I am using fetch to read the json file but it seems that I cannot to access it if I use a local file.
... View more
11-01-2022
05:19 PM
|
1
|
1
|
1184
|
|
POST
|
THank you. After I posted the question, I found them. However, I am looking for the Table widget which is not listed under dist/widgets/arcgis
... View more
10-21-2022
02:41 PM
|
0
|
2
|
1744
|
|
POST
|
In WAB, I could edit ESRI widgets to modify their functionality to better fit my organization's needs. In ExB, ESRI widgets in the development environment are located under client/dist/widgets/ However, these widgets already translated and cannot be easily modified. Where can we view the ESRI widget in their original source code? I am aware of the https://github.com/Esri/arcgis-experience-builder-sdk-resources/tree/master/widgets but not all widgets are there.
... View more
10-21-2022
02:06 PM
|
1
|
4
|
1767
|
|
DOC
|
It seems that WAB uses the map.infoWindow in popuppanel widget to define a generic popup.
... View more
10-19-2022
01:12 PM
|
0
|
0
|
23821
|
|
DOC
|
No, it seems it doesn't have one. https://developers.arcgis.com/experience-builder/guide/add-layers-to-a-map/ However, in WAB I was able to add layers by custom code and with no popup template and get the side bar to show the properties of the clicked feature.
... View more
10-19-2022
10:43 AM
|
0
|
0
|
23838
|
|
DOC
|
ok. Thanks. Sorry for the confusion, but I am just getting familiar with ExB. So, now I am using the Jewlery theme and I removed from the view the widget that comes inside the side panel by using the "Move it to the inactive list" and placed the FeaturePanel widget inside. Then, I placed a button on the map "Add Widget" from the ESRI sample code. When I click on the Add widget, the feature layer appears on the map (after few secs). However, when I click on one of the features the side panel does not expand. I already set the featurePanel widget on the settings to work with the map and I disabled the map's "Enable pop-up" property. I also set the FeaturePanel's Auto Open property to true. What am I doing wrong? Thanks. Here is the site: https://svctenvims.dot.ca.gov/sidebar/
... View more
10-19-2022
10:08 AM
|
0
|
0
|
23848
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-19-2025 10:13 PM | |
| 3 | 02-06-2026 10:44 AM | |
| 1 | 01-08-2026 12:50 PM | |
| 1 | 01-05-2026 01:35 PM | |
| 1 | 12-30-2025 10:18 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|