POST
|
Hi all, i want to get total length of my feature layer, i use API version 4. 27. I tried this code: view.when(function() {
var length = geometryEngine.geodesicLength(wyalmomaragebareabilitaciebi2025, "meters");
console.log("Polyline length (meteres): ", length);
}); but it did not work, i get ERROR: Uncaught (in promise) TypeError: Cannot read properties of null (reading 'B') I can do it using query, but it slows load time, help please. Thank you
... View more
05-12-2025
10:57 AM
|
0
|
1
|
254
|
POST
|
Thank you @Sage_Wall , i see, i did not try to add FLs as objects and map.allLayers i couldn't think about it. Thanks again
... View more
10-29-2024
04:22 AM
|
0
|
0
|
469
|
POST
|
Hi all, In edit widget i want to enable all layers snapping, i used this code: snappingOptions: { // autocasts to SnappingOptions()
enabled: true, // global snapping is turned on
// assigns a collection of FeatureSnappingLayerSource() and enables feature snapping on this layer
featureSources: [{ layer: myFlLayer1, myflLayer2, enabled: true }]
} but, it des not work. How can i pass several layers in featureSources? Thanks
... View more
10-28-2024
11:27 PM
|
0
|
2
|
503
|
POST
|
Hi all, I want to disable selection on click for some Featurelayer on my map. I have two Featurelayer overlapping and when i click on map i want to get popup only for one Featurelayer. Thanks
... View more
05-16-2024
05:14 AM
|
0
|
2
|
921
|
POST
|
Hi @jcarlson , thank you for answer, but it does not work 😞
... View more
05-13-2024
01:38 AM
|
0
|
0
|
554
|
POST
|
Hi @JamesIng, thank you. your answer is what i was looking for
... View more
05-12-2024
11:42 PM
|
0
|
0
|
987
|
POST
|
Hi all, I want to get screenPoints of polyline (maybe array of points, no problem). For point features i use code: projection.load().then(function () { let screenPoint = view.toScreen(feature.geometry); console.log(screenPoint.x, screenPoint.y); } and it works fine, but how can achieve this for polyline? Thanks in advance
... View more
04-15-2024
08:40 AM
|
0
|
2
|
1203
|
POST
|
Hi guyz, I am trying to set feature length as label on my map. From MapServer i can get it using $feature.Shape_length, but from FeatureServer it does not work, i tried to use Length($feature, 'meters') but it returns wrong data, any idea how to do? Kind regards.
... View more
03-28-2024
05:35 AM
|
0
|
2
|
766
|
POST
|
Thank you very much, this is exactly what i wanted 3>
... View more
03-03-2024
10:08 PM
|
0
|
0
|
1033
|
POST
|
Hello Guyz, I have changed click event to mouseover in this sample, here on mouse hover view goes to feature. Two thing i want to do are: 1) Open popup for selected feature, i tried view.openPopup({}), but i think i have missing something. 2) Deselect selected feature after mouse out on button. this two thing, i think it will help others too in the future. Thanks
... View more
02-29-2024
05:17 AM
|
0
|
2
|
1099
|
POST
|
hi @Marten , on 6080 port admin is accessible, but on 6443 it isn't and all the ports are opened.
... View more
12-07-2023
12:59 AM
|
0
|
0
|
1256
|
POST
|
hello everyone we have a problem about ArcGIS server 10.9, so the deal is: our server works fine with port 6080 when we have HTTP as a protocol, but it crashes as soon as we put Http and Https as protocol. Server has problem with 6443 port machine status gets error "Error" Failed to get the status of the server machine 'server.domain'. Could not connect to the ArcGIS component at URL 'https://server:6443/arcgis/admin/local/isAppServerStarted'. The ArcGIS component on that machine may not be running or the machine may not be reachable at this time.Error: Connection refused: connect Code 500 we checked SSL certificate and it is not a problem with certificate. I would be grateful with any suggestions you have for me.
... View more
12-06-2023
04:31 AM
|
0
|
5
|
1298
|
POST
|
Thanks Jeffry, you gave me right direction, i simply change projection of clicked point and it works fine. Thanks Working code: var beforeLandslideUrl =
"https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer";
var beforeLandslideLayer = new ElevationLayer({
url: beforeLandslideUrl
});
view.on("click", function(event) {
var xyztext = document.getElementById("xyzcheckbox");
if(xyztext.checked == true){
// Query both elevation layers for the elevation at the clicked map position
let sr1 = new SpatialReference({ wkid: 32638 });
var position = event.mapPoint;
let projectedPoints = projection.project(position, sr1);
console.log(projectedPoints);
var queryBeforeLandslide = beforeLandslideLayer.queryElevation(position);
// When both query promises resolve execute the following code
promiseUtils
.eachAlways([queryBeforeLandslide])
.then(function(results) {
var posBeforeLandslide = results[0].value.geometry;
document.getElementById('xspan').innerHTML = "X: " + posBeforeLandslide.x.toFixed(2);
document.getElementById('yspan').innerHTML = "Y: " + posBeforeLandslide.y.toFixed(2);
document.getElementById('zspan').innerHTML = "Z: " + posBeforeLandslide.z.toFixed(2);
})
}
else
{
//view.graphics.removeAll();
}
});
... View more
09-07-2023
01:24 AM
|
0
|
0
|
1032
|
POST
|
Hi all, I am using worldelevation3D service to display X-Y-Z coordinates, but X and Y i want to show in WKID: 32638, SpatialReference for map i have isGCSWGS1984. To get coordinates i use this code still get different WKID coordinates: let beforeLandslideUrl =
"https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer";
const sr1 = new SpatialReference({ wkid: 32638 });
let beforeLandslideLayer = new ElevationLayer({
url: beforeLandslideUrl,
spatialReference: sr1
});
view.on("click", function(event) {
var xyztext = document.getElementById("xyzcheckbox");
if(xyztext.checked == true){
// Query both elevation layers for the elevation at the clicked map position
var position = event.mapPoint;
var queryBeforeLandslide = beforeLandslideLayer.queryElevation(position);
// When both query promises resolve execute the following code
promiseUtils
.eachAlways([queryBeforeLandslide])
.then(function(results) {
var posBeforeLandslide = results[0].value.geometry;
// Clear graphics from previous result (if applicable)
//view.graphics.removeAll();
//alert("ზღვის დონიდან: " + posBeforeLandslide.z +", " + "x: " + posBeforeLandslide.x + ", " + "y: " + posBeforeLandslide.y)
// document.getElementById('xyzspan').innerHTML = "X: " + posBeforeLandslide.x.toFixed(2)+ "; " + "Y: " + posBeforeLandslide.y.toFixed(2)+ "; " + "Z: " + posBeforeLandslide.z.toFixed(2);
document.getElementById('xspan').innerHTML = "X: " + posBeforeLandslide.x.toFixed(2);
document.getElementById('yspan').innerHTML = "Y: " + posBeforeLandslide.y.toFixed(2);
document.getElementById('zspan').innerHTML = "Z: " + posBeforeLandslide.z.toFixed(2);
})
}
else
{
//view.graphics.removeAll();
}
});
... View more
09-06-2023
04:46 AM
|
0
|
2
|
1115
|
Title | Kudos | Posted |
---|---|---|
1 | 08-22-2022 11:57 PM | |
1 | 08-31-2022 12:41 AM | |
1 | 08-23-2022 02:49 AM | |
1 | 05-10-2022 05:12 AM | |
1 | 01-13-2022 10:03 AM |
Online Status |
Offline
|
Date Last Visited |
05-13-2025
03:20 AM
|