POST
|
Hi Guys, On my map i want to select multiple layers by drawing rectangle and than export selected features fields. i have this code thanks to @BlakeTerhune (From my previous topic😞 // create a new sketch view model set its layer
const sketchViewModell = new SketchViewModel({
view: view,
layer: polygonGraphicsLayerr
});
// Once user is done drawing a rectangle on the map
// use the rectangle to select features on the map and table
sketchViewModell.on("create", async (event) => {
if (event.state === "complete") {
// this polygon will be used to query features that intersect it
const geometriess = polygonGraphicsLayerr.graphics.map(function(graphic){
return graphic.geometry
});
const queryGeometry = await geometryEngineAsync.union(geometriess.toArray());
selectFeatures(queryGeometry);
}
});
// This function is called when user completes drawing a rectangle
// on the map. Use the rectangle to select features in the layer and table
function selectFeatures(geometry) {
// create a query and set its geometry parameter to the
// rectangle that was drawn on the view
var query = {
geometry: geometry,
outFields: ["*"]
};
map.allLayers.forEach(layer => {
// Query all layers data
layer.queryFeatures(query)
.then((results) => {
// do something with query results
console.log(results)
})
.catch(errorCallback);
});
}; When i draw rectangle in logs i get error: layer.queryFeatures is not a function; what i do wrong? What is wrong here and i can not see? Help
... View more
12-23-2022
01:55 AM
|
0
|
3
|
891
|
POST
|
Hi, This is not query i want it does not work for me. In the filed "monacemTa_Segrovebis_TariRi" i have all months and i want to get data only for e.g. March or April, using this query i can not perform this action. Extract gives me only month, not its data.
... View more
09-29-2022
12:59 AM
|
0
|
1
|
1097
|
POST
|
Hi guys, I am trying to get particular month (e.g. January) data between 2015-2018 years. I am using query: monacemTa_Segrovebis_TariRi > '2015-01-01' AND monacemTa_Segrovebis_TariRi < '2019-01-01' AND month( monacemTa_Segrovebis_TariRi )=1 It Is working on GIS desktop version, but on web i can not use it. On web it work till "month" block, when i add "month it stops working and i get message "Invalid Query". What i did wrong? Thanks
... View more
09-27-2022
11:50 PM
|
0
|
4
|
1140
|
POST
|
Hi, I am not sure but try using proxy,for same error when using WMS it works , try in tis case too.
... View more
09-23-2022
06:56 AM
|
0
|
1
|
815
|
POST
|
Hello, @Noah-Sager Sorry Noah, i do not know who i have to mention here, hope you will help. In Gerogia's (Republic of Georgia) capital Tbilisi we have big water reservoir, called "Tbilisi Reservoir" or "Tbilisi sea". ESRI on it's image basemap have sign in English letters, but in Russian meaning "Tbilisskoye Vodokhranilishche". This is a very big bug and mistake. See attached pic. please. Thank you.
... View more
09-06-2022
06:03 AM
|
0
|
3
|
777
|
POST
|
I did it, just added "queryable: true" under sublayer and it works now like a charm const layer = new WMSLayer({ url,
sublayers: [
{
name: "LR_PARCELS_transparent",
queryable: true
}
]
});
... View more
08-31-2022
12:41 AM
|
1
|
0
|
2445
|
POST
|
Hi Ann, thanks for replay. Seems that it works, but when i put my WMS service link i get error : Uncaught (in promise)Object { name: "request:server", details: {…}, message: "JSON.parse: unexpected character at line 1 column 1 of the JSON data" }, and i do not why, maybe because i use proxy to this WMS layer? Thanks
... View more
08-31-2022
12:15 AM
|
0
|
0
|
2446
|
POST
|
Hello all, I want to get WMS layer info on click as we have feature layer popup. Is there any working example i can use, or any suggestion how can i do it? All examples i saw is for old version, i use JS API 4.24. Thank you
... View more
08-30-2022
05:15 AM
|
0
|
5
|
2486
|
POST
|
Hi, in Conversation widget, when i open my map in Google Chrome, i can not copy Coordinates, but in Mozila Firefox i can copy. @esridy
... View more
08-23-2022
04:13 AM
|
0
|
1
|
389
|
POST
|
Okay guys, I fixed it, problem was in my custom widget code, so i changed two lines and it works now. Cheers!
... View more
08-23-2022
02:49 AM
|
1
|
0
|
659
|
POST
|
Hi guys, I am using Coordinate Conversion Widget to see coordinates on map. When clicking on map, i can see coordinates in widget form, but point graphic does not add to the map and i can not copy coordinates in widget form. I tried to add widget in different places in Require Script , but no succcess. Who can help 😄
... View more
08-23-2022
12:15 AM
|
0
|
2
|
693
|
POST
|
Hi, try this: /* Border background*/
.esri-popup__main-container {
background-color: aqua !important;
}
/*Elements (fields) background*/
.esri-feature__content-element {
background-color: blanchedalmond;
}
... View more
08-22-2022
11:57 PM
|
1
|
0
|
810
|
POST
|
Hi Noah, Thank you. But here we have some problems: 1. We do not have Georgian in the languages list; 2. I have Custom HTML on my map and how these elements will be translated using LOCALIZATION? Thanks
... View more
07-12-2022
11:36 PM
|
0
|
0
|
590
|
POST
|
Hi, So, i have my beautiful map, i can change languages for my custom HTML elements , click GEO and ENG buttons and languages are changed. Now i want to translate API elements, like Popup, elevation widget etc... Is there any simple way to translate or i have to go my way and find a way?
... View more
07-11-2022
04:17 AM
|
0
|
2
|
640
|
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
|