POST
|
Hello, I'm trying to filter my layer to create a featureSet with a right but dashboard sends me a error . My goal is to keep the features who have the same date as the actual year. I use the field DEVIATION and I hoped with a right do the query. Here's my code I've seen on esri documentation https://doc.arcgis.com/fr/drone2map/2023.1/help/sql-reference-for-elements-used-in-query-expressions.htm and my code seems good but it's doesn't work. Thank you for your help!
... View more
07-31-2024
01:39 AM
|
0
|
2
|
442
|
POST
|
Hello, I'd like to know if it's possible to interact with the map on the 2 features classes after a featureSet was created. I explain: I got lines and information terminal. On this fc, there is a field called "Lines" with the names of lines separated by /. I can create a featureSet with the name of the terminal and the lines My goal is to interact on each layer on the map. When I try, it's impossible. With one, it's ok but not with the both. Here OK. Here NOK because the tool gives me the same field above. So, is there a way to do that or not? Thank you!!
... View more
07-25-2024
09:03 AM
|
0
|
0
|
243
|
POST
|
Thank you Alix but it's ok for just one feature and not many,no? I've seen the batch editor attribute will be on Experience Builder on the Q4 of 2024.
... View more
01-30-2024
12:59 AM
|
0
|
1
|
1498
|
POST
|
Hello everybody, is there a way to edit selected features on arcgis enterprise, on Java or with a custom widget?I know a way with Wep AppBuilder for Developer but I didn't want to choose it because it's almost the end! Moreover, I didn't find anything about it. Thank you
... View more
01-26-2024
09:13 AM
|
0
|
3
|
1606
|
POST
|
Hello @JeffreyThompson2 , I resolved the problem with my IT. We have downloaded node.js 18, install Visual Studio, reinstall Python, and it works. I can't explain, i don't understand at all but it works 🙂
... View more
10-26-2023
05:43 AM
|
1
|
1
|
2359
|
POST
|
Hello, i'm trying to install the Arcgis experience builder for developers Edition and it doesn't want :). I have followed this link http://www.davidapps.net/exb/EXBDevTutorial/overview.htm?ms=EgAQEg%3D%3D&st=MA%3D%3D&sct=MA%3D%3D&mw=Mzg0, it's ok for the server but the client not. I get messages with node or python Errors and I don't where it comes. So if someone could help me 🙂
... View more
10-26-2023
12:59 AM
|
1
|
6
|
2450
|
POST
|
I found!!The arcade expressions have to be in the template properties and not out. With your function concatenate it works. //TEMPLATE
const template = {
// autocasts as new PopupTemplate()
title: "{IDARRET} / {NOMARRET} <i>/ {MNLP_HASTUS}</i>",
lastEditInfoEnabled : false,
expressionInfos: [{
name: "loca",
title: "Localisation",
// defined in separate script element
expression: `Concatenate([$feature.ADRESSE, TextFormatting.NewLine, $feature.VILLE])`
},
{
name: "Coord",
title: img_coord,
expression:
`function MetersToLatLon(x, y) {
// Converts XY point from Spherical Mercator EPSG:900913 to lat/lon in WGS84 Datum
// Fuente: http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/
var originShift = 2.0 * PI * 6378137.0 / 2.0;
var lon = (x / originShift) * 180.0;
var lat = (y / originShift) * 180.0;
lat = 180.0 / PI * (2.0 * Atan( Exp( lat * PI / 180.0)) - PI / 2.0);
return [lat, lon];
}
var latlon = MetersToLatLon(Geometry($feature).X, Geometry($feature).Y);
//var url = CreateWazeURL(latlon[0], latlon[1]);
//return round(latlon[0],2)+"-------"+ round(latlon[1],2);
var a = 6378137; //demi grand axe de l'ellipsoide (m)
var e = 0.08181919106; //première excentricité de l'ellipsoide
var l0 = PI /180 * 3
var lc = l0
var phi0 = PI / 180 * 46.5 // latitude d origine en radian
var phi1 = PI / 180 * 44 // 1er parallele automécoïque
var phi2 = PI / 180 * 49 // 2eme parallele automécoïque
var x0 = 700000; //coordonnées à l'origine
var y0 = 6600000; //coordonnées à l'origine
var long = latlon[0]
var lat = latlon[1]
var phi = (PI / 180) * long;
var l = (PI / 180) * lat;
//calcul des grandes normales
var gN1 = a / Sqrt(1 - e * e * Sin(phi1) * Sin(phi1));
var gN2 = a / Sqrt(1 - e * e * Sin(phi2) * Sin(phi2));
//calculs des latitudes isométriques
var gl1 = Log(Tan(PI / 4 + phi1 / 2) * Pow((1 - e * Sin(phi1)) / (1 + e * Sin(phi1)), e / 2));
var gl2 = Log(Tan(PI / 4 + phi2 / 2) * Pow((1 - e * Sin(phi2)) / (1 + e * Sin(phi2)), e / 2));
var gl0 = Log(Tan(PI / 4 + phi0 / 2) * Pow((1 - e * Sin(phi0)) / (1 + e * Sin(phi0)), e / 2));
var gl = Log(Tan(PI / 4 + phi / 2) * Pow((1 - e * Sin(phi)) / (1 + e * Sin(phi)), e / 2));
//calcul de l'exposant de la projection
var n = (Log((gN2 * Cos(phi2)) / (gN1 * Cos(phi1)))) / (gl1 - gl2);//ok
//calcul de la constante de projection
var c = ((gN1 * Cos(phi1)) / n) * Exp(n * gl1);//ok
//calcul des coordonnées
var ys = y0 + c * Exp(-1 * n * gl0);
var $x = x0 + c * Exp(-1 * n * gl) * Sin(n * (l - lc));
// var y93 = ys - c * Exp(-1 * n * gl) * Cos(n * (l - lc));
//var $x= (($c*exp(-$n*($lat_iso)))*sin($n*(latlon[0]-3)/180*PI)+$xs);
var $y = ys - c * Exp(-1 * n * gl) * Cos(n * (l - lc));
return round($x,2) +TextFormatting.NewLine+ round($y,2)`
} ],
content:
[
{
// It is also possible to set the fieldInfos outside of the content
// directly in the popupTemplate. If no fieldInfos is specifically set
// in the content, it defaults to whatever may be set within the popupTemplate.
type: "fields",
fieldInfos: [
{
fieldName: "expression/loca",
//expression : "$feature.ADRESSE",
label: img_adresse,
},
{
fieldName: "expression/Coord",
}
],
}
],
actions: [editPROD,editPROJ1,editPROJ2],
}; Thank you @Sage_Wall !
... View more
02-15-2023
07:06 AM
|
1
|
0
|
1248
|
POST
|
Thank you @Sage_Wall but it doesn't work. I tried with Concatenate and without this function and nothing happens. //ARCADE
const arcadeExpressionInfos = [
{
name: "loca",
title: "Localisation",
// defined in separate script element
expression: `$feature.IDARRET+ TextFormatting.NewLine + $feature.IDARRET" `
}, {
name: "Coord",
title: img_coord,
expression:
`function MetersToLatLon(x, y) {
// Converts XY point from Spherical Mercator EPSG:900913 to lat/lon in WGS84 Datum
// Fuente: http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/
var originShift = 2.0 * PI * 6378137.0 / 2.0;
var lon = (x / originShift) * 180.0;
var lat = (y / originShift) * 180.0;
lat = 180.0 / PI * (2.0 * Atan( Exp( lat * PI / 180.0)) - PI / 2.0);
return [lat, lon];
}
var latlon = MetersToLatLon(Geometry($feature).X, Geometry($feature).Y);
//var url = CreateWazeURL(latlon[0], latlon[1]);
//return round(latlon[0],2)+"-------"+ round(latlon[1],2);
var a = 6378137; //demi grand axe de l'ellipsoide (m)
var e = 0.08181919106; //première excentricité de l'ellipsoide
var l0 = PI /180 * 3
var lc = l0
var phi0 = PI / 180 * 46.5 // latitude d origine en radian
var phi1 = PI / 180 * 44 // 1er parallele automécoïque
var phi2 = PI / 180 * 49 // 2eme parallele automécoïque
var x0 = 700000; //coordonnées à l'origine
var y0 = 6600000; //coordonnées à l'origine
var long = latlon[0]
var lat = latlon[1]
var phi = (PI / 180) * long;
var l = (PI / 180) * lat;
//calcul des grandes normales
var gN1 = a / Sqrt(1 - e * e * Sin(phi1) * Sin(phi1));
var gN2 = a / Sqrt(1 - e * e * Sin(phi2) * Sin(phi2));
//calculs des latitudes isométriques
var gl1 = Log(Tan(PI / 4 + phi1 / 2) * Pow((1 - e * Sin(phi1)) / (1 + e * Sin(phi1)), e / 2));
var gl2 = Log(Tan(PI / 4 + phi2 / 2) * Pow((1 - e * Sin(phi2)) / (1 + e * Sin(phi2)), e / 2));
var gl0 = Log(Tan(PI / 4 + phi0 / 2) * Pow((1 - e * Sin(phi0)) / (1 + e * Sin(phi0)), e / 2));
var gl = Log(Tan(PI / 4 + phi / 2) * Pow((1 - e * Sin(phi)) / (1 + e * Sin(phi)), e / 2));
//calcul de l'exposant de la projection
var n = (Log((gN2 * Cos(phi2)) / (gN1 * Cos(phi1)))) / (gl1 - gl2);//ok
//calcul de la constante de projection
var c = ((gN1 * Cos(phi1)) / n) * Exp(n * gl1);//ok
//calcul des coordonnées
var ys = y0 + c * Exp(-1 * n * gl0);
var $x = x0 + c * Exp(-1 * n * gl) * Sin(n * (l - lc));
// var y93 = ys - c * Exp(-1 * n * gl) * Cos(n * (l - lc));
//var $x= (($c*exp(-$n*($lat_iso)))*sin($n*(latlon[0]-3)/180*PI)+$xs);
var $y = ys - c * Exp(-1 * n * gl) * Cos(n * (l - lc));
return round($x,2) +TextFormatting.NewLine+ round($y,2)`
}
];
//TEMPLATE
const template = {
// autocasts as new PopupTemplate()
title: "{IDARRET} / {NOMARRET} <i>/ {MNLP_HASTUS}</i>",
lastEditInfoEnabled : false,
content:
[
{
// It is also possible to set the fieldInfos outside of the content
// directly in the popupTemplate. If no fieldInfos is specifically set
// in the content, it defaults to whatever may be set within the popupTemplate.
type: "fields",
fieldInfos: [
{
fieldName: "expression/loca",
//expression : arcadeExpressionInfos,
label: img_adresse,
},
{
fieldName: "VILLE",
label: "Ville",
},
{
fieldName: "MNLP_HASTUS",
label: "MNLP Hastus",
},
{
fieldName: "expression/Coord",
}
],
expressionInfos: arcadeExpressionInfos
}
],
actions: [editPROD,editPROJ1,editPROJ2],
}; And on the pop up, This link helps me https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=popuptemplate-arcade . I don't know what I missed!
... View more
02-15-2023
04:35 AM
|
0
|
0
|
1257
|
POST
|
Hello, I would like concatenate two attributes in pop up. I 'd like to merge these attributes like that Thank you for your help!
... View more
02-14-2023
02:22 AM
|
0
|
4
|
1311
|
POST
|
Hello everybody, I'd like to know how to replace Text by an icon/image in a pop up. I 'd like to do like that: Thank you
... View more
02-10-2023
05:46 AM
|
0
|
3
|
1082
|
POST
|
I found the solution, here the code: //TEMPLATE
const template = {
// autocasts as new PopupTemplate()
title: "Arrêt N° {IDARRET} - {NOMARRET}",
lastEditInfoEnabled : false,
expressionInfos: [
{
name: "Coord",
title: "Coordonnées XY",
expression:
`function MetersToLatLon(x, y) {
// Converts XY point from Spherical Mercator EPSG:900913 to lat/lon in WGS84 Datum
// Fuente: http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/
var originShift = 2.0 * PI * 6378137.0 / 2.0;
var lon = (x / originShift) * 180.0;
var lat = (y / originShift) * 180.0;
lat = 180.0 / PI * (2.0 * Atan( Exp( lat * PI / 180.0)) - PI / 2.0);
return [lat, lon];
}
var latlon = MetersToLatLon(Geometry($feature).X, Geometry($feature).Y);
//var url = CreateWazeURL(latlon[0], latlon[1]);
//return round(latlon[0],2)+"-------"+ round(latlon[1],2);
var a = 6378137; //demi grand axe de l'ellipsoide (m)
var e = 0.08181919106; //première excentricité de l'ellipsoide
var l0 = PI /180 * 3
var lc = l0
var phi0 = PI / 180 * 46.5 // latitude d origine en radian
var phi1 = PI / 180 * 44 // 1er parallele automécoïque
var phi2 = PI / 180 * 49 // 2eme parallele automécoïque
var x0 = 700000; //coordonnées à l'origine
var y0 = 6600000; //coordonnées à l'origine
var long = latlon[0]
var lat = latlon[1]
var phi = (PI / 180) * long;
var l = (PI / 180) * lat;
//calcul des grandes normales
var gN1 = a / Sqrt(1 - e * e * Sin(phi1) * Sin(phi1));
var gN2 = a / Sqrt(1 - e * e * Sin(phi2) * Sin(phi2));
//calculs des latitudes isométriques
var gl1 = Log(Tan(PI / 4 + phi1 / 2) * Pow((1 - e * Sin(phi1)) / (1 + e * Sin(phi1)), e / 2));
var gl2 = Log(Tan(PI / 4 + phi2 / 2) * Pow((1 - e * Sin(phi2)) / (1 + e * Sin(phi2)), e / 2));
var gl0 = Log(Tan(PI / 4 + phi0 / 2) * Pow((1 - e * Sin(phi0)) / (1 + e * Sin(phi0)), e / 2));
var gl = Log(Tan(PI / 4 + phi / 2) * Pow((1 - e * Sin(phi)) / (1 + e * Sin(phi)), e / 2));
//calcul de l'exposant de la projection
var n = (Log((gN2 * Cos(phi2)) / (gN1 * Cos(phi1)))) / (gl1 - gl2);//ok
//calcul de la constante de projection
var c = ((gN1 * Cos(phi1)) / n) * Exp(n * gl1);//ok
//calcul des coordonnées
var ys = y0 + c * Exp(-1 * n * gl0);
var $x = x0 + c * Exp(-1 * n * gl) * Sin(n * (l - lc));
// var y93 = ys - c * Exp(-1 * n * gl) * Cos(n * (l - lc));
//var $x= (($c*exp(-$n*($lat_iso)))*sin($n*(latlon[0]-3)/180*PI)+$xs);
var $y = ys - c * Exp(-1 * n * gl) * Cos(n * (l - lc));
return round($x,2) +TextFormatting.NewLine+ round($y,2)`
} ],
content:
[
{
// It is also possible to set the fieldInfos outside of the content
// directly in the popupTemplate. If no fieldInfos is specifically set
// in the content, it defaults to whatever may be set within the popupTemplate.
type: "fields",
fieldInfos: [
{
fieldName: "ADRESSE",
label: "Adresse"
},
{
fieldName: "VILLE",
label: "Ville",
},
{
fieldName: "MNLP_HASTUS",
label: "MNLP Hastus",
},
{
fieldName: "expression/Coord",
}
],
// expressionInfos: arcadeExpressionInfos
}
],
actions: [editPROD,editPROJ1,editPROJ2]
}; And on the webmap:
... View more
02-10-2023
05:39 AM
|
0
|
0
|
826
|
POST
|
Nobody? I would like something like that in my pop up when user find a feature. It is possible? Thank you
... View more
02-02-2023
04:33 AM
|
0
|
1
|
863
|
POST
|
Hello everybody, I would like to get X and Y on the pop up when user search a feature. I don't know if it's better to do this with Arcade expressions or with a event function. With Arcade, I have a little problem on the script on the $feature X. <script id="X">
function MetersToLon(x) {
var originShift = 2.0 * PI * 6378137.0 / 2.0;
var lon = (x HERE THE PROBLEM / originShift) * 180.0;
return Round(lon, 3);
return MetersToLon(Round(Geometry($feature).X, 6));
}
</script> Could someone help me on this please?
... View more
01-30-2023
04:01 AM
|
0
|
2
|
917
|
Title | Kudos | Posted |
---|---|---|
1 | 10-26-2023 05:43 AM | |
1 | 10-26-2023 12:59 AM | |
1 | 02-15-2023 07:06 AM | |
1 | 11-09-2020 08:07 AM |
Online Status |
Offline
|
Date Last Visited |
12-03-2024
04:11 PM
|