|
POST
|
You just need to create an element that when an event happens, like value entered or a button clicked, it passes that value into the part where you have the 10 miles coded. Here is an example of something similar I have done. Example Link
... View more
06-17-2024
06:06 AM
|
1
|
0
|
1778
|
|
POST
|
It probably has something to do with your IT. Do they make sure to keep Windows up to date? What version of Windows are you currently on? Did you try it off network, like at home or a library?
... View more
06-12-2024
12:49 PM
|
0
|
0
|
811
|
|
POST
|
Not sure exactly why it's not working. However, I switched the MapImageLayer to TileLayer and it work. Perhaps the large MapImageLayer is not rendering fast enough during the print/export? A TileLayer will use a cache in order to render faster.
... View more
05-01-2024
07:26 AM
|
1
|
1
|
1726
|
|
POST
|
Either set the layers you don't want listMode to "hide" or if you have a service with a lot of layers, like a MapImageLayer use the sublayers.
... View more
04-24-2024
01:02 PM
|
0
|
0
|
2017
|
|
POST
|
This is using a portal item, I can get that to work. It's a feature service where the issue is. User error. Thanks for the help!
... View more
04-15-2024
10:28 AM
|
1
|
0
|
1609
|
|
POST
|
Is it possible to edit a stand-alone table from a feature service with the Javascript API? I can do it using online and experience builder, but cannot figure it out using just the native Javascript API. Anyone have an example on how it's done? I am not trying to add it to the map/view or anything like that, just accessing the information to be edited. This is the error I get: Failed to resolve layer view (layer title: 'n', id: '####') f {name: 'featurelayerview:table-not-supported', details: {…}, message: "table feature layer can't be displayed"}
... View more
04-15-2024
09:34 AM
|
0
|
2
|
1686
|
|
POST
|
Here is a example of changing the calcite design. I switched the chevrons to arrows. https://codepen.io/mbdriscoll/pen/wvZyXoE?editors=1010
... View more
04-05-2024
07:46 AM
|
0
|
0
|
1007
|
|
POST
|
I see. I think you are going to need to customize the calcite. I looked here, but cannot find which would be the best place to start.
... View more
04-05-2024
07:13 AM
|
0
|
0
|
1015
|
|
POST
|
ESRI Icons const directionalPad = new DirectionalPad({
view: view
icon: "esri-icon-handle-horizontal",
})
... View more
04-05-2024
06:46 AM
|
0
|
3
|
2319
|
|
POST
|
Here is a working code pen using your same layer. Your area is just west of where my map loads. https://codepen.io/mbdriscoll/pen/gOyprmg?editors=1010
... View more
03-08-2024
08:05 AM
|
0
|
0
|
3004
|
|
POST
|
Sorry, I have not tried either one of those things.
... View more
03-08-2024
08:01 AM
|
0
|
1
|
2576
|
|
POST
|
What I did was add the highlight ids and filtered that. Below is a bigger picture. let queryBP = bldPermLayer.createQuery();
queryBP.where = finQueryBP
queryBP.outFields = ["*"];
// do the query
bldPermLayer
.queryFeatures(queryBP)
.then((response) => {
const graphics = response.features;
//console.log(response.features.length);
if(response.features.length === 0){
alert("Search query found no results.");
return
}else{
for(let iii=0; iii < response.features.length; iii++){
featureTable.highlightIds.add(response.features[iii].attributes.objectid);
featureTable.filterBySelection();
console.log("this is the search")
}
};
tabContain.style.visibility = "visible";
bpContain.style.display = "none";
});
// Attach the event listener outside of the featureTable.when callback
const grid = featureTable.container.querySelector("vaadin-grid");
if (grid) {
grid.addEventListener("cell-activate", cellActivateHandler);
} else {
console.log("Feature table grid not found.");
};
grid.removeEventListener("cell-activate", cellActivateHandler);
grid.addEventListener("cell-activate", cellActivateHandler);
... View more
03-08-2024
06:52 AM
|
1
|
3
|
2583
|
|
POST
|
This is how I did it. The feature tables are vaadin-grids. // Attach the event listener
const grid = featureTable.container.querySelector("vaadin-grid");
if (grid) {
grid.addEventListener("cell-activate", cellActivateHandler);
} else {
console.log("Feature table grid not found.");
};
grid.removeEventListener("cell-activate", cellActivateHandler);
grid.addEventListener("cell-activate", cellActivateHandler); // Define the cellActivateHandler function
function cellActivateHandler(e) {
// Important to remove the event listener or it will hold on to the last query and iterate the next one.
// Then add it back so it can continue to listen on same table.
const feature = e.detail.model.item.feature;
const permitNump = feature.attributes.fldpermitnum;
const pidBPp = feature.attributes.fldcamanum_1_txt;
const datedatap = feature.attributes.fld_permitdate;
const newdatep = new Date(datedatap);
const finYearp = newdatep.getFullYear();
const query = new Query({
where: "PID = '" + pidBPp + "'",
outFields: ["*"],
returnGeometry: true,
});
// Check if the feature table is ready
if (featureTable && featureTable.container) {
if(BPhighlights){
BPhighlights.remove();
};
parcelLayer.queryFeatures(query).then(function (result){
if(result.features.length === 0){
alert("The PID for this permit no longer exists!")
return
};
BPhighlights = parcelLayerViewBP.highlight(result.features);
// Create a highlight graphic and add it to the graphics layer
result.features.forEach(function (feature){
var parcelExtent = feature.geometry.extent.clone().expand(1.5);
theView.goTo({
target: parcelExtent,
zoom: 15.75
});
});
});
} else {
// Feature table is not ready, handle accordingly
console.log("Feature table is not ready.");
};
}
... View more
03-07-2024
01:51 PM
|
0
|
5
|
2596
|
|
POST
|
Maybe a Picture Marker Symbol? Maybe play around in the symbol builder? Honestly it might be easiest to create in Pro and host it.
... View more
03-07-2024
01:25 PM
|
0
|
0
|
1252
|
|
POST
|
This works for me. const labelClass = {
// autocasts as new LabelClass()
symbol: {
type: 'text', // autocasts as new TextSymbol()
color: 'yellow',
haloColor: 'black',
haloSize: 1,
font: {
// autocast as new Font()
family: 'playfair-display',
size: 12,
weight: 'bold',
},
},
deconflictionStrategy: 'none',
maxScale: 0,
minScale: 15000,
labelPlacement: 'always-horizontal',
labelExpressionInfo: {
expression: '$feature.FID',
},
};
const SoilsLayer = new FeatureLayer({
url: 'https://services1.arcgis.com/uye9M5KkL8B18MZq/arcgis/rest/services/KS_Soils/FeatureServer/0',
//apiKey: apiKey,
//minZoom: 12, // Minimum zoom level of 12
//renderer: L.canvas({ pane: 'middle' }),
labelingInfo: [labelClass],
lablelsVisible: true,
style: {
color: 'yellow', // Grey border
weight: 1, // Border width
fillColor: 'none', // No fill
fillOpacity: 0,
},
})
map.add(SoilsLayer)
... View more
03-07-2024
12:54 PM
|
1
|
2
|
3031
|
| 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
|