POST
|
Ok, I have reported this to Esri support. It's a bug (BUG-000173156) that will be addressed in a future release. Here's an alternative solution: Using a keyboard shortcut (press Shift and drag a box on the map to draw a preview area) results in that changing the DPI value no longer changes the extent of the print preview area. Keyboard shortcut is mentioned as a tip in documentation: https://doc.arcgis.com/en/arcgis-online/get-started/print-maps-mv.htm
... View more
02-26-2025
09:59 PM
|
0
|
0
|
261
|
POST
|
Thank you very much for the quick response and for sharing the blog. I will definitely take part in the survey!
... View more
02-26-2025
09:42 PM
|
0
|
0
|
349
|
POST
|
I have a general question. As widgets are gradually being migrated to MapComponent, what does this mean for the underlying viewModels such as BasemapGalleryViewModel or EditorViewModel? Will these objects continue to be part of the Core API, or can we expect new approaches in the future? I would appreciate any insight from the Esri devs. Thank you!
... View more
02-26-2025
07:07 AM
|
2
|
2
|
409
|
POST
|
Thanks @WongChunKang for posting this snippet. This helped me a lot in 2D. Unfortunately in 3D I get an layerView with type="map-image-3d" which does not support highlight function. Any hints on that? Is this a bug or net yet implemented?
... View more
01-27-2025
12:52 PM
|
0
|
0
|
940
|
POST
|
Hi Antonio, You should use a webmap from Portal or Archos online.
... View more
01-20-2025
02:32 AM
|
1
|
0
|
303
|
POST
|
Hi, I've encountered a problem with showPrintAreaEnabled=true in Print Widget. It seems to render a correctly sized canvas only with 96dpi. Changing e.g. to 300dpi enlarges the printarea canvas. I think that's not the intended behaviour. You can check that out in the samples: https://developers.arcgis.com/javascript/latest/sample-code/widgets-print/
... View more
12-20-2024
12:15 AM
|
0
|
1
|
406
|
POST
|
Hi Vara, have you tried this property: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Editor.html#supportingWidgetDefaults we used successfully to set defaultUpdateOptions and defaultCreateOptions, maybe this could help you too. Andre
... View more
08-30-2024
02:17 AM
|
0
|
1
|
896
|
POST
|
Hi, could you provide the code for your customUpdateHandle?
... View more
07-12-2024
02:56 PM
|
0
|
0
|
553
|
POST
|
We have the same problem in our application. I tried a lot of things, but I didn't come to a solution. But I do know that this bug already came up with 4.28. Maybe this helps the developers of esri.
... View more
06-05-2024
11:28 PM
|
1
|
0
|
1019
|
POST
|
Hi David, yes we took the events from SketchWidget instance, as you described in your link. Alternatively, there are the same events on the SketchWidgetViewModel https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#events-summary your right, the code snippet I provided, doesn't work from scratch. I took our code and deleted many lines for this post. You can define text by yourself and assign it to graphic's attributes, something like this: const redrawLabel = (graphic) => {
let labelAnchor;
let geom = graphic.geometry;
let attr = graphic.attributes;
if (geom.type === "point") {
labelAnchor = geom;
} else if (geom.type === "polyline") {
labelAnchor = geom.extent.center;
} else if (geom.type === "polygon") {
labelAnchor = geom.centroid;
}
let text = attr.userInputText
//or any other attribute you defined and filled in ev.create (ev.state === "complete")
drawLabel(text, labelAnchor);
}
... View more
05-24-2024
01:47 AM
|
0
|
0
|
1025
|
POST
|
Hi, here is our workaround: create new GraphicLayer for text symbols catch the following events: "create": ev.state === "complete" || ev.state === "cancel", "update" ev.state === "active", "undo", "redo", "delete" in event callback remove all graphics from text symbol layer and create every text symbol for all graphics in sketch graphic layer 3 can be achieved with this code: const textLayer = new GraphicsLayer({
id: "sketch1",
title: "text symbols",
internal: true,
});
export const defaultTextSymbol = {
type: "text", // autocasts as new TextSymbol()
color: "white",
haloColor: "black",
haloSize: "1px",
font: {
size: 10,
weight: "bold",
},
};
const drawLabel = (text, labelAnchor, symbolProps = null) => {
const labelSymbol = { ...defaultTextSymbol, text: text };
const label = new Graphic({
geometry: labelAnchor,
symbol: symbolProps ? { ...labelSymbol, ...symbolProps } : labelSymbol,
});
textLayer.graphics.add(label);
};
export const redrawTextLayer = () => {
textLayer.graphics.removeAll();
sketchLayer.graphics.forEach((graphic) => {
redrawLabel(graphic);
});
};
const redrawLabel = (graphic) => {
let labelAnchor;
let geom = graphic.geometry;
let attr = graphic.attributes;
if (geom.type === "point") {
labelAnchor = geom;
} else if (geom.type === "polyline") {
labelAnchor = geom.extent.center;
} else if (geom.type === "polygon") {
labelAnchor = geom.centroid;
}
drawLabel(text, labelAnchor);
};
... View more
05-22-2024
10:27 PM
|
1
|
2
|
1075
|
POST
|
I tried heading: false and header: false in visibleElements property and it didn't work. Maybe this is possible with little CSS like in this post: Solved: remove/hide settings section from editor widget. - Esri Community ? Thanks for any hints.
... View more
05-13-2024
12:54 PM
|
0
|
0
|
403
|
POST
|
Here's our solution for formatting the suggestions in the search widget (we removed the federal state): const widget = new Search(props);
widget.on("suggest-complete", (ev) => {
ev.results[0].results.forEach((res) => {
// remove federal state
res.text = res.text.replace(", Baden-Württemberg, DEU", "");
});
});
... View more
05-12-2024
11:16 PM
|
0
|
0
|
536
|
POST
|
Hi I'm facing an issue when trying to modify the legend, which is created by Print-Widget + ExportWebMap GPTool. I can turn legend entries (property legendEnabled) on and off for FeatureLayer, WMSLayer, WMSSublayer and for a whole MapImagelayer. But the property legendEnabled in sublayer seems to be ignored by Print Widget, when building the ExportWebMap json. I've made a pen for this issue. Unfortunately the AGOL PrintService is blocked by codepen, but you can see the WebMapJSON payload in DevTools' Network tab. [...]
"legendOptions":{"operationalLayers":[{"id":"18f6154546c-layer-0","subLayerIds":[3,2,1,0]}]}}} As you can see all sublayers are included, though I turned one off in the sample. Here's the link to the pen: https://codepen.io/gdi-hokis/pen/VwOZVJm Any help is appreciated
... View more
05-10-2024
12:21 AM
|
0
|
0
|
389
|
POST
|
I think filter only accepts exact values and query is the property you should go with. https://developers.arcgis.com/javascript/latest/api-reference/esri-portal-PortalQueryParams.html#query
... View more
05-06-2024
02:50 AM
|
0
|
0
|
932
|
Title | Kudos | Posted |
---|---|---|
2 | 02-26-2025 07:07 AM | |
1 | 01-20-2025 02:32 AM | |
1 | 06-05-2024 11:28 PM | |
1 | 05-22-2024 10:27 PM | |
2 | 03-14-2024 12:59 AM |
Online Status |
Offline
|
Date Last Visited |
04-06-2025
01:53 PM
|