|
POST
|
I'm developing custom widgets for WAB (Develper Edtion) 2.17, Launchpad Theme, on 3D Scenes (ArcGIS API for javascript 4.17), on our compamy portal (version 10.7.1). I am still a newbie... I need do screenshot around polygon extent - not by dragging mouse, but automatically, i.e. to get automatically the extent ( + 10%) and do screenshot over it. I can get the extent, but screensot works with x,y screen pixels, whilst I have x,y coordinates on map. my feature layer spatial reference is NOT geographic, but grid - it is wkid:2039 (Israel TM Grid). if I try to do let p = new Point({ x: poly.extent.center.x, y: poly.extent.center.y, z: 0, spatialReference: poly.spatialReference }); let screenP = that.sceneView.toScreen(p); Then I still get exagerated values for x,y So, how to translate the polygon extent coordinates to screen coordinates? Help will be greatly appreciated. How to covert x,y map coordinates, to x,y screen coordinates? Help wiil be greatly appreciated
... View more
03-19-2021
05:11 AM
|
0
|
0
|
868
|
|
POST
|
@RobertScheitlin__GISP - Dear Robert, no one responded till now... Can you help please?
... View more
03-14-2021
01:18 AM
|
0
|
1
|
1999
|
|
POST
|
From my trials I understand that if the layer spatial reference is 102100 (that is 3857 WGS 1984 Web Mercator) then from its geometries then I can create a buffer, by the code above, but if the layer spatial reference is wkid:2039 (Israel TM Grid) then when I try to create a buffer from its geometries by the code above, I get the error mentioned above. So, what should I do? I need to create a buffer, and I need spatial reference = wkid:2039 (Israel TM Grid) in order that the automatic computed area for polygons will be correct. Help will be gereatly appreciated! Michael
... View more
03-11-2021
07:42 AM
|
0
|
0
|
2896
|
|
POST
|
I'm developing custom widgets for WAB (Develper Edtion) 2.17, Launchpad Theme, on 3D Scenes (ArcGIS API for javascript 4.17). I have a layer which I need that the polygon areas which are computed automatically, will be correct. So I use a 2D feaure layer whose spatial reference WKID is 2039 (Israel TM Grid). But I have a problem - I need to create a buffer, and I am using this code: var buffers = geometryEngine.geodesicBuffer( geometries, // geometries [bufferDistance], // distance "meters", // unit true // unionResults into SINGLE polygon ); but it fails, with a weird error mesage: "not implemented yet". What I assume, is that somehow I don't know how to create a buffer from geometries in a layer, whose spatial reference wkid is NOT 102100 (that is 3857 WGS 1984 Web Mercator), but is wkid:2039 (Israel TM Grid). But I need use wkid:2039 as the layer spatial reference in order that the automatically computed polygon areas will be correct. Help will be greatly appreciated! Michael Lev
... View more
03-11-2021
05:38 AM
|
0
|
2
|
2141
|
|
POST
|
I am developing custom widgets for WAb (Developer Edition). When I create polygon in a WGS84 layer, the automatically computed area for the polygon is wrong. When the user creates polygon, I need to pass the poligon points to AreaMeasurement3D and get the area, all by javascript, without user intervantion, then I'll insert the correct area into new field in the layer. How to do it?
... View more
03-10-2021
07:24 AM
|
0
|
0
|
1021
|
|
POST
|
In WAB 3D scenes, If I create polygon in a layer which is on WGS84, its automatically computed area is wrong. If I create polygon in a layer which is on Israel New Grid, for example, its automatically computed area is correct. When I use the widget Measurement3D, the area is ALWAYS computed correctly. So, if widget Measurement3D can do it, why the automatically computed area is wrong if the layer is on WGS84?
... View more
03-10-2021
06:46 AM
|
0
|
0
|
1077
|
|
POST
|
in my code I do: var buffers = geometryEngine.geodesicBuffer( geometries, // geometries [bufferDistance], // distance "meters", // unit true // unionResults into SINGLE polygon ); But suddenly, for new layers, I get error msg "Not Implemented". What in the layer(s) can cause such an error?
... View more
03-10-2021
04:47 AM
|
0
|
3
|
3045
|
|
POST
|
Hi @Noah-Sager , my 2nd coordinate system is not wkid:102241 but wkid:2039. I added z: parseFloat(parts[2]) to the conversionInfo and has not got z dimension, and this was the reason why I opened this question. After reading your answer, I searched the pdf mansioned by you, and wkid:2039 is also not mentioned in that pdf in the table of coordinate systems that support vertical dimension. So, this is indeed the reason why I can't get z for wid:2039. Thank you
... View more
01-30-2021
05:01 AM
|
1
|
0
|
1936
|
|
POST
|
Vy the way, to my question (why I can't get z for wkid:2039) I got there an answer - that wkid:2039 does not support the vertical dimension. Michael
... View more
01-30-2021
04:54 AM
|
0
|
0
|
3140
|
|
POST
|
I'm using ArcGIS API for javascript version 4.18 CoordinateConversion widget to display mouse coordinates cocurrently for several cordinate systems. I'm following ESRI's code example in CoordinateConversion widget - Custom Formats page. This page shows how to add 2 new formats, one is wgs84 with "z", the 2nd is some TM format. I want to add "z" also with the 2nd format, but I have not succeeded, as I'm new to this area. I'll appreciate help.
... View more
01-28-2021
08:31 PM
|
0
|
2
|
2014
|
|
POST
|
Dear Robert, I succeeded. Hwever, I failed to add "z" when I show the wkid:2039 x,y I've posted a question in the API community. Thanks for helping me entering esri WAB (Developer Edition) custom widgets world. Michael
... View more
01-28-2021
08:11 PM
|
0
|
0
|
3162
|
|
POST
|
Dear Robert, I'll try by myself to replace WAB's Coordinate widget by a custom widget that activates the new CoordinateConversion widget after adding wkid:2039 to it, and I'll inform you. Thank you, Michael
... View more
01-28-2021
08:34 AM
|
0
|
0
|
3170
|
|
POST
|
Thank you, Robert. It's correct (only in new GeographicTransformationStep I need to add isInverse: true)
... View more
01-28-2021
07:35 AM
|
0
|
0
|
7421
|
|
POST
|
Dear Robert , Thank you for answering. Currently our basemap is one of the standard esri basemaps, so the map WKID is 102100 ... But -- I'm sure there is at least one way which is also relatively easy! In my WAB (Developer Edition) 2.17 application, instead of using the original WAB's "Coordnate" widget, I can use the new ESRI's specific CoordinateConversion widget, developed specifically for this very purpose, i.e., to display mouse coordinates "on the fly" oncurrently for any several pre-defined coordinate systems (and the programme can add more). This widget top description is here (this is same link as above). Click on map jumps to demo page (there I can jump to the sandbox). In the above widget's top description page it's written: "Additional formats can be created by a developer and made available through the widget.", and below it, in "See also" links list, there are 2 relevant links: Sample - Coordinate widget (jumps to the demo page mentioned above) Sample - Add custom coordinate formats - This is most important - it shows by demo + sandbox how to add more coordinate systems (like wkid:2039). I'll learn this matter, but as all this is new to me, maybe you can help me by showing me how to modify their sandbox code example, in order to add wkid:2039 (TFWKID:108021), so that I'll have something robust to start with? With appreciation, Michael
... View more
01-28-2021
03:15 AM
|
0
|
1
|
3175
|
| 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
|