|
POST
|
Dear Robert, thank you so much! I learn so much from you!
... View more
07-10-2020
09:09 AM
|
0
|
0
|
2037
|
|
POST
|
Dear Robert, My way of independent widget works very well (I took Coordinate widget and "cleaned" almost whole of it). Today I tested your VERY short implementation and it works like magic! Two questions: 1. In order to be able use it, I have to handle locales for the text entered by config. I see that by nls I can handle different languages, but how can I set that the application will handle it as it handles other widgets, e.g. move it to leftside of screen when locale changed to rtl languages (e.g. &locale=he) ? 2. I looked and saw that it is entered not directly inside the div with class "esri-view-root", but inside its child, the div with class "esri-ui". Why it has not been put directly beneath "esri-view-root"? 3. Anyway, I tried to put it inside "esri-view", but it had not solved the problem in 1. So, what is the right way to let esri code handle it as it handles the other qidgets? I mean to move it between screen right and screen left as the language changes from ltr to rtl?
... View more
07-10-2020
04:08 AM
|
0
|
1
|
2037
|
|
POST
|
Dear Robert, thank you very much for answering quickly. It took me time to finish OK by custom widget (I started from Coordinate and deleted most text) an it's fully OK. Tomorrow I'll check what you sent in order to learn the 2nd way, and I'll let you know.
... View more
07-09-2020
11:20 AM
|
0
|
0
|
2037
|
|
POST
|
Meantime I'm succeeding in adapting Coordinate. I'll see if I have questions after I finish. Thank you.
... View more
07-09-2020
05:32 AM
|
0
|
2
|
2037
|
|
POST
|
I use Launchpad Theme, and need to display label showing when the 3D scene data has been created, on scene view, just leftside to top-right 3 on-screen widgets, like: "Date of photo: 9.7.2020". This is fixed text string to be taken from json config. The need is very very simple, yet... I don't know how to do it. Since I don't need the whole widget functionality, Only automatically show some fixed text from when the application starts. I think the right way is to create a custom widget, that like Coordinate widget will display text on screen, but - 1. Coordinate is a huge widget and I need to dig in it and create a very tiny one. 2. Coordinate does indeed display a tiny icon on its left, whilst I prefer (if possible) to present only the text (if icon must be displayed besides the text [I prefer leftside of it], but clicking it would do nothing, it is also ok). Still, I don't know how Coordinate hides the original widget icon. Maybe this suits me. The needed tiny custom widget would not be activated manually, but all it will do is display the fixed text of e.g. maximum 25 characters near top-right of screen, with some nice background color. Or maybe the easy way is to modify the code that manages the screen, so that besides putting all widgets on it, it will also put some label (with some background)? I'm not so strong with css. I need help and will appreciate it very much.
... View more
07-09-2020
02:25 AM
|
0
|
6
|
2183
|
|
POST
|
Thank you very much, Robert. As usual, you are so helpful and opening my eyes in this area of custom widgets. Michael
... View more
07-08-2020
12:53 PM
|
0
|
0
|
2065
|
|
POST
|
Robert, Thank you very much! now it's perfect! I wnat only to be sure why in the esri example we don't get multi-events. Is it because there we don't ADD events, but only OVERRIDE the button definition (we do button.onclick = function)? is this the right explanation?
... View more
07-08-2020
09:35 AM
|
0
|
1
|
2065
|
|
POST
|
Dear Robert, I assume you have not succeeded to reproduce the problem. I always run on an updated chrome... I assume you just created single screenshot, and indeed If you activate the widget once, it is OK. But... When you create 2nd screenshot, it saves AGAIN the 1st, then the 2nd. When you activate 3rd time, it saves AGAIN the 1st, then AGAIN the 2nd, then the 3rd... and so on and on. This is a serious problem. I have not succeeded yet to solve it
... View more
07-07-2020
11:23 PM
|
0
|
9
|
3003
|
|
POST
|
Thank you, Robert, it works for me! I have a few questions. most important - If I activate your widget, I get multiple explorer download dialogs... (from the 2nd case, I get two one after another). This does not happen in esri app. I "bypassed" this problem, but I am eager to understand why the app does not have this problem, only the widget - so waht is the cause of it, and how to solve it? The other questions (less important, but needed for me in order to understand the process of converting app to widget) - 1. why do we need and what does the line "this.inherited(arguments);" ? 2. In the file style.css, why the prefix "jimu-widget-screenshot" not needed for all items? 3. screenshotBtn have class "esri-widget" both in esri app and in your widget. why? what does it do? 4. in the app, the div "viewDiv" that contains the scene and the button, also has class "esri-widget". again, why and what it does? Thank you
... View more
07-07-2020
10:01 AM
|
0
|
1
|
3003
|
|
POST
|
Dear Robert, Thank you so much! Now it's late here. I'll inform you after trying tomorrow. Today I tried something myself, but have not succeeded yet, so I hope to learn the right way to do it from what you sent.
... View more
07-06-2020
12:42 PM
|
0
|
2
|
3003
|
|
POST
|
In ArcGIS Web AppBuilder (Developer Edition) 2.16, I have to create in-panel custom widget to make a screenshot, based upon Take a screenshot of a SceneView | ArcGIS API for JavaScript 4.15 As I'm relatively new to this area, I'd appreciate getting advice in which way to do it? whether by javascript "innerHTML =" sentences, or to create a class like LoadingShelter? And I'd like to get some hints as to how to start doing it. In short: I don't know the way how can I insert html and css by in-panel widget, into the main scene, which, according to what I understand, is what I need to implement in this case.
... View more
07-06-2020
05:40 AM
|
0
|
17
|
5269
|
|
POST
|
Dear Robert, Thaks to your explanations concerning LoadingShelter class, here and in other plaves, I managed to do it, and I want to explain what I did, since my 3d custom widget is in-panel and does not have an explicit html file, so in postCreate I had to place it versus the map (and not versus the widget node), as follows: postCreate: function () { this.inherited(arguments); this.shelter = new LoadingShelter({ hidden: true }); /* next line is important since widget does not have a nice independent html file */ this.shelter.placeAt(/*this.domNode*/ document.getElementById("main-page")); this.shelter.startup(); }, and from there on, all I had to do is tto insert in the appropriate places - his.shelter.show("my text"); and this.shelter.hide(); I also managed to change the color of both the txt and the animation vertical bars, by changing in file jimu.js/css/jimu.css : 1) in .jimu-loading-shelter .loading-container { color: /*#000000*/ azure; /*mlev LoadingShelter color of text*/ 2) in @keyframes shelter-loading { in 0%,80%,100% { box-shadow: 0 0 /*#999*/ deepskyblue; /*mlev LoadingShelter color*/ in 40% { box-shadow: 0 -0.5rem /*#999*/ deepskyblue; /*mlev LoadingShelter color*/ 3) in .jimu-loading-shelter .loading-container .img-div:before, .jimu-loading-shelter .loading-container .img-div:after, .jimu-loading-shelter .loading-container .img-div { background: /*#999*/ deepskyblue; /*mlev LoadingShelter color*/
... View more
07-03-2020
07:23 AM
|
0
|
0
|
3680
|
|
POST
|
Thank you, Robert. I’m succeeding... I’ll let you know when I finish.
... View more
07-02-2020
08:19 AM
|
0
|
0
|
3680
|
|
POST
|
Thank you, Robert! Indeed, afterwards, I saw that I could show the loading icon... only it was not in the middle of map and its colors were not vivid... So I need to put it in midst of the scene and handle its style. I'll try to see examples in the WAB code that uses it, and inform you. Important - I'll appreciate it if you point me to the code of yours Identify and eSearch widgets, so I can learn from them, and tell me few words on the logic of opening and styling the LoadingShelter loading widget. I assume that your help will enable me to use it OK, and I'll let you know. Thank you!
... View more
07-01-2020
08:33 PM
|
0
|
1
|
3680
|
|
POST
|
I have built custom widget to enable import of 3d glTF models into a scene. I based it on “url link button” in-panel widget (which does not need and does not have an HTML file) and on example of esri which shows how to import 3d glTF model into a scene. Indeed I don’t know if other formats than .glb could be imported? and I don’t know how to make it that the dimensions from the .glb file will be taken (by my program or by the scene) so that the model will be shown in its real size. Currently the model is inserted with very little dimensions so I “force” some dimension, otherwise it will not be seen at first. If I can get help in better coding of the 3d model import, I’ll appreciate it very much. Can I please get help also in improving the code that imports the model? And I’m using Amazon cloud, since it seems that esri do not enable import of 3d model but by url. I hope that they will enable also by zip file. Thank you very much for all your effective help! Michael
... View more
07-01-2020
12:22 PM
|
0
|
1
|
3680
|
| Title | Kudos | Posted |
|---|---|---|
| 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 | |
| 1 | 03-25-2024 01:11 AM |
| Online Status |
Offline
|
| Date Last Visited |
07-01-2025
04:28 AM
|