|
POST
|
I develop on EXB 1.13 Developer Edition. I want that WITHOUT appending "?locale=he" to the end of the application's url, the default language will be Hebrew (instead of English) and that by appending "?locale=" then the language will be taken from the url How can I code it?
... View more
03-13-2024
01:18 AM
|
0
|
0
|
684
|
|
POST
|
I know that in EXB develipmaent, for any page I can set its header attribute to "off", but I want to know how do I set it to "off" or "on" by code
... View more
03-11-2024
07:59 AM
|
0
|
0
|
1241
|
|
POST
|
I made EXB multipage app with header and menu of the various tabs at the top, and I need that when the app loads, it will not display the header (hide it? or just not display it?). I attach screenshot of current left-top corner of my app In chrome debugger I saw that if I set "display:none" for class "header", it will hide it, but I need to do it from within the web app. - I assume this should be controlled in "componentDidMount" somewhere. - I assume that client\dist\widgets\common\menu is the relevant widget that I need to copy into my custom widgets folder and change it accordingly. - I saw that inside this widget there is a component drawer-menu.tsx which has inside it className='header' which is actually the element I want to "hide". I need help: 1. how to automatically not display the header when the app loads. (Later I'll need a code in another widget to control if the header is displayed or not. ) 2. Could the virtual dom be searched to change display attribute of some class, or is this not the way to do it?
... View more
03-05-2024
06:15 AM
|
0
|
1
|
1350
|
|
POST
|
I develop on EXB 1.13 for 3D web apps. I succeeded to respond to mouse wheel by responding to extent changes, but I want to know how to catch and respond to mouse wheel changes directly.
... View more
03-04-2024
11:41 PM
|
0
|
1
|
1121
|
|
POST
|
I develop on EXB 1.13 for 3D views. I am newbie to React, and it seems that I don't know how to use "useState" correctly within the widget, so even after values are "saved" by useState, they are null when reading them... I'll describe what I did, the I'll present my problems: I copied the original widget client\dist\widgets\arcgis\coordinates into my custom widgets folder and I use it from there. I modified that the display of x,y coordinates, zoom, scale etc. is updated "on the fly" as mouse moves. But I noticed that if I modify mouse wheel alone, the display is not updated"on the fly", until I move the mouse horizontally or vertically. In order that the display of zoom and scale will update "on the fly" as I change mouse wheel, I did the next modifications: 1. after the useState const [currentJimuMapView, setCurrentJimuMapView] = useState(null) I added one more useState: const [lastMousePointAsScreenCoordinates, setLastMousePointAsScreenCoordinates] = useState(null) 2. In function "const onMouseMove", since threeDPoint is object with x,y, I added: setLastMousePointAsScreenCoordinates(threeDPoint) 3. In function "const onActiveViewChange" I added next code: // When extent changes, update the display of x,y location, zoom, etc. reactiveUtils.watch(() => view?.extent, async () => { if (!view?.basemapView) return //since I use 3D sceneView if (lastMousePointAsScreenCoordinates) { const pointAsMapCoordinates = view.toMap(lastMousePointAsScreenCoordinates) await displayOnClient(pointAsMapCoordinates, lastMousePointAsScreenCoordinates) } }) }) 4. Please note that function "const onActiveViewChange" does setCurrentJimuMapView(jimuMapView) yet, as I described in Problem_2, the saved value is being read as null... my problems: Problem_1. in (3), lastMousePointAsScreenCoordinates is null, though I saved it by useState... Problem_2. Even if I bypass the useState and set some correct value in "pointAsMapCoordinates", still, at end of function "displayOnClient" there is the code: const view = currentJimuMapView?.view and here again a similar problem: Though currentJimuMapView has been set by useState in function "const onActiveViewChange", it is now null... To summarize - I see I don't yet grasp how to save/read correctly by "useState" in the widget?
... View more
03-04-2024
07:38 AM
|
0
|
1
|
1142
|
|
POST
|
Hi @Noah-Sager , I looked at your 2 links but I have not seen a way to set locale to Hebrew without adding "?locale=he" to the url. Have I missed something?
... View more
03-03-2024
12:49 AM
|
0
|
0
|
1443
|
|
POST
|
@Jianxia , I succeeded. I copied client/dist/widgets/arcgis-map widget into my custom widgets folder and modified it to open the scene according to x,y in the url. I had to add dependency as in solution-to-failed-to-load-map . As I present both geographic coordinates and ITM (2039) in my custom widget coordinates (I copied esri's coordinates and modified) "on the fly" as the mouse moves, I allow inserting x,y in the url either by degrees or by ITM. by checking x,y magnitude I can tell if it's degrees or not.
... View more
02-29-2024
06:30 AM
|
1
|
1
|
2116
|
|
POST
|
@Grant-S-Carroll Thanks, I also encountered this problem, and it helped
... View more
02-29-2024
05:52 AM
|
0
|
0
|
2999
|
|
POST
|
Thank you! Am I understanding correctly that it will be able to put the whole viewpoint json in the url? Question: what if I want to give in the url less data, e.g, only x, y, and camera height above ground? Or, only x and y (and let EXB put the camera automatically at some 200 meter, for example, above ground? (meanwhile I am trying as I wrote above, but I have not finished yet, and I'm not sure whether I'll succeed)
... View more
02-28-2024
11:54 AM
|
0
|
0
|
2139
|
|
POST
|
I work with 3D scenes. Regularly EXB opens a 3D scene at its default location. Sometimes I want to append specific x,y coordinates (or specific Viewpoint) to the url which activates the EXB web app, in order that when EXB starts, it will open the scene exactly at this place. I assume I'll need to copy client/dist/widgets/arcgis-map widget into "your-extensions" and I want to be sure where and how to modify the code to get the data from the url and open the 3D scene directly at that location. (I assume that for 2D maps it will be very similar)
... View more
02-28-2024
04:07 AM
|
0
|
6
|
2238
|
|
POST
|
If I understand correctly - "?locale=he" from url is copied into AppContext.locale interface when the app is loaded and not changed afterwards. If url does not contain "?locale=" then AppContext.locale is not defined, and when EXB opens, it will set the locale to a fixed default value of "en". What I still do not know is how to cause AppContext.locale to be "he", even without adding "?locale=he" to the url. In orther words - does React enables it, to "force" AppContext.locale to be "he" as if the user had entered "?locale=he"
... View more
02-28-2024
01:29 AM
|
0
|
0
|
1497
|
|
POST
|
by ?locale=he I can set the language, but I want that the default ui language will be Hebrew, and that if the user want English, he will have to set ?locale=en How do I set that the default ui language will be Hebrew?
... View more
02-26-2024
08:16 AM
|
0
|
3
|
1578
|
|
POST
|
according if the user ui language is English or some rtl language (e.g. Hebrew), I need to control the direction attribute of the css. How can I sense it in tsx / ts / css files and set the right direction attribute (ltr or rtl)?
... View more
02-26-2024
08:13 AM
|
0
|
0
|
666
|
|
POST
|
@JeffreyThompson2 Thank you! I'll try the ways you presented. Meanwhile I searched for "bottom-line1" in whole client, and changed marginBottom to -17px. I did it in pc-layout-json.ts but I had to do the same also in the 2 js files. I still do not understand why those 2 js files are not automatically built from ts and tsx files... ( I used "blank page" and no template when creating the exb app)
... View more
02-26-2024
07:57 AM
|
0
|
0
|
2061
|
|
POST
|
@JeffreyThompson2 If I want to try, I don't know WHERE to do this, and HOW, because implementing css in react is so different than in regular js... What I want is to put coordinates widget at bottom, so it's not disturbed. Maybe displaying "Powered by Esri" alone, at right or left corner, or play with z-index. But' as I said, I don't know where and how to do such things.
... View more
02-26-2024
06:08 AM
|
0
|
1
|
2078
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-13-2026 04:27 AM | |
| 1 | 12-15-2024 12:09 AM | |
| 1 | 08-01-2024 03:45 AM | |
| 1 | 01-04-2024 04:00 AM | |
| 1 | 03-28-2024 01:25 AM |
| Online Status |
Offline
|
| Date Last Visited |
02-13-2026
04:26 AM
|