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
|
242
|
POST
|
Hi @jcarlson , thank you for answer, but it does not work 😞
... View more
05-13-2024
01:38 AM
|
0
|
0
|
153
|
POST
|
Hi @JamesIng, thank you. your answer is what i was looking for
... View more
05-12-2024
11:42 PM
|
0
|
0
|
237
|
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
|
453
|
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
|
365
|
POST
|
Thank you very much, this is exactly what i wanted 3>
... View more
03-03-2024
10:08 PM
|
0
|
0
|
410
|
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
|
476
|
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
|
487
|
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
|
3
|
529
|
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
|
513
|
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
|
596
|
POST
|
Hi guyz, I try to get JSON data from GIS server using PHP, but i couldn't, i use this code: <?php
$curl= curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_URL, 'http://127.0.0.0:6080/arcgis/rest/services/Water_Incidents/GWP_WATER_2023/FeatureServer/0/query?where=1%3D1&objectIds=&time=&geometry=&geometryType=esriGeometryPoint&inSR=&spatialRel=esriSpatialRelIntersects&distance=&units=esriSRUnit_Foot&relationParam=&outFields=*&returnGeometry=true&maxAllowableOffset=&geometryPrecision=&outSR=&havingClause=&gdbVersion=&historicMoment=&returnDistinctValues=false&returnIdsOnly=false&returnCountOnly=false&returnExtentOnly=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&returnZ=false&returnM=false&multipatchOption=xyFootprint&resultOffset=&resultRecordCount=&returnTrueCurves=false&returnExceededLimitFeatures=false&quantizationParameters=&returnCentroid=false&timeReferenceUnknownClient=false&sqlFormat=standard&resultType=&featureEncoding=esriDefault&datumTransformation=&f=json');
$res = curl_exec($curl);
curl_close($curl);
$jo = json_decode($res);
echo $jo->features;
?> how can i get this data any idea? Thanks
... View more
07-13-2023
06:26 AM
|
0
|
0
|
471
|
POST
|
Thanks @David_McRitchie, it works great, you saved me a lot of time ❤️
... View more
07-06-2023
05:46 AM
|
0
|
0
|
486
|
POST
|
Hi guyz, how can i make Popup movable? I am looking for simple way, not to use too much JS code, if you have any smart solution please share. Thanks
... View more
07-04-2023
11:46 PM
|
0
|
2
|
559
|
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-20-2024
08:19 AM
|