|
POST
|
I would call ESRI support. This seems to be a bug with the f-strings. Or perhaps in the original code create variables for both of the f-strings like the template creation is trying to do.
... View more
08-23-2024
08:14 AM
|
0
|
0
|
2002
|
|
POST
|
For geojson you can query the feature you want to extract, get the graphics and use its properties to extract the geojson. let newGraphic = new GraphicsLayer();
newGraphic.listMode = "hide";
theMap.add(newGraphic);
newGraphic.addMany(results.features);
newGraphic.listMode = "hide";
var graphJSON = []
graphJSON.push(newGraphic.graphics.toJSON())
... View more
08-23-2024
07:48 AM
|
1
|
1
|
1237
|
|
POST
|
Make sure to change includeDefaultSources to false. I also make sure my sources searchFields, outFields, and diplayField are all the same. const searchWidget = new Search({
view: theView,
searchAllEnabled: true,
maxResults: 10000000,
maxSuggestions: 10000000,
title: "Quick Parcel Search",
label: "Quick Parcel Search",
includeDefaultSources: false,
locationEnabled: false,
exactMatch: false,
sources: [
{
layer: parcelLayer,
searchFields: ["PartyName_1"],
name: "Search by Owner",
exactMatch: false,
outFields: ["PartyName_1"],
displayField: "PartyName_1",
},
{
layer: parcelLayer,
searchFields: ["PropertyAddress"],
name: "Search by Address",
exactMatch: false,
outFields: ["PropertyAddress"],
displayField: "PropertyAddress",
},
{
layer: parcelLayer,
searchFields: ["QuickRefID"],
name: "Search by Quick Reference ID",
exactMatch: false,
outFields: ["QuickRefID"],
displayField: "QuickRefID",
}
],
});
... View more
08-23-2024
07:21 AM
|
0
|
1
|
1055
|
|
POST
|
Start trying to query the field and use the angle on the TextSymbol. Never done this before so I am not positive this is the answer. https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html#angle
... View more
08-23-2024
07:10 AM
|
1
|
0
|
1389
|
|
POST
|
Here is a code pen sample. In ESRI fashion they change these things all the time and don't clearly document the change or error messages for things like this. This works in 4.28, but not higher. Perhaps call support and see what the change was? https://codepen.io/mbdriscoll/pen/gONzWdL
... View more
08-23-2024
06:41 AM
|
0
|
1
|
1568
|
|
POST
|
I only know how to do it for esri icons. In your css. .esri-icon-plus::before{
color: red;
content: "\e67a";
}
... View more
08-16-2024
11:52 AM
|
0
|
3
|
1622
|
|
POST
|
The question was how to do it without definitionExpression. So marking your solution as the correct one, by using definitionExpression, is a bit miss leading for those searching for the same thing in the future.
... View more
08-16-2024
09:30 AM
|
0
|
1
|
547
|
|
POST
|
You don't need to create a new FeatureLayer each time, just query off the one every time. In fact you don't need to add the FeatureLayer to the map at all. You might need to loop through the response.features, but not sure that is necessary.
... View more
08-15-2024
12:25 PM
|
0
|
1
|
2724
|
|
POST
|
Do what you want with it in the code. It's the same data so it could go something like below. function handleQueryResults() {
let queryBP = bldPermLayer.createQuery();
queryBP.where = "query"
queryBP.outFields = ["*"];
// do the query
bldPermLayer
.queryFeatures(queryBP)
.then((response) => {
featureTable.selectRows(response.features);
featureTable.filterBySelection();
});
}
... View more
08-15-2024
09:31 AM
|
0
|
3
|
2730
|
|
POST
|
What do you mean? Are trying to edit a FeatureTable through a query?
... View more
08-15-2024
07:00 AM
|
0
|
5
|
2749
|
|
POST
|
You can bring it in as a FeatureLayer and query it the same as you would as a feature layer. const bldPermLayer = new FeatureLayer({
url: "https://.../server/rest/services/...",
outFields:["*"]
});
const featureTable = new FeatureTable({
view: theView,
layer: bldPermLayer,
});
function handleQueryResults() {
let queryBP = bldPermLayer.createQuery();
queryBP.where = "query"
queryBP.outFields = ["*"];
// do the query
bldPermLayer
.queryFeatures(queryBP)
.then((response) => {
// code
});
}
... View more
08-15-2024
06:18 AM
|
0
|
7
|
2754
|
|
POST
|
Correct, it won't mess with how the layers are stacked on the map, just how they appear in the layerlist.
... View more
08-13-2024
03:44 PM
|
1
|
0
|
2047
|
|
POST
|
If you bring them in as a MapImageLayer you can use the sublayers to modify the order they will show in the LayerList. They will be layered like a cake, for the example below the Lot Lines will be on the bottom and the Roads will be on the top. const baseLayers = new MapImageLayer({
url: "...server/rest/services/...",
sublayers:[
{ id: 24, title: "Lot Lines"},
{ id: 23, title:"Address Annotation", visible: false},
{ id: 22, title: "Bridges"},{ id: 21, title: "Watershed and Drainage Districts", visible: false},
{ id: 20, title: "Sewer Districts",visible: false},{ id: 19, title: "School Districts",visible: false},
{ id: 18, title: "Rural Water Districts",visible: false},{ id: 17, title: "Gas Districts",visible: false},
{ id: 16, title: "Fire Districts",visible: false},{ id: 15, title: "Electric Districs",visible: false},
{ id: 14, title: "Cemetery Districts",visible: false},{ id: 13, title: "Commissioner Districts",visible: false},
{ id: 12, title: "Voting Districts",visible: false},{ id: 11, title: "Zoning",visible: false},
{ id: 10, title: "FEMA Floodplain",visible: false},{ id: 9, title: "Tax Units",visible: false},
{ id: 8, title: "Sections",visible: false},{ id: 7, title: "Subdivisions",visible: false},
{ id: 6, title: "River/Streams"},{ id: 4, title: "Lakes"},{ id: 5, title: "County Boundary"},
{ id: 3, title: "Parcels"},{ id: 2, title: "City Limits"},
{ id: 1, title: "Railroads"},{ id: 0, title: "Roads"},
],
});
... View more
08-13-2024
01:18 PM
|
0
|
2
|
2063
|
|
POST
|
ESRI uses vaadin grid for it's tables. So I would start your search there instead of the ESRI api.
... View more
07-16-2024
07:18 AM
|
0
|
0
|
689
|
|
POST
|
Try, resultGraphic.graphic.removeAll(); or resultGraphic.removeAll()
... View more
06-27-2024
12:06 PM
|
0
|
1
|
3312
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-23-2026 09:28 AM | |
| 2 | 05-21-2026 09:21 AM | |
| 1 | 05-19-2026 02:25 PM | |
| 1 | 05-19-2026 08:11 AM | |
| 1 | 04-17-2026 01:08 PM |
| Online Status |
Offline
|
| Date Last Visited |
05-28-2026
06:06 AM
|