|
POST
|
It also might be good to look at the network traffic and see what the failed request looks like (e.g. 403 error, 404 error). Also, if you could post a simplified repro case on something like codepen, that would help diagnose.
... View more
10-19-2021
07:43 AM
|
0
|
0
|
1569
|
|
POST
|
@JeffersonTotimeh, yes, you must supply your own valid API key. https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#apiKey https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/
... View more
10-19-2021
07:39 AM
|
0
|
1
|
3176
|
|
POST
|
Thanks for posting your regex idea @Andy_Morgan, that's a really nice dynamic workaround. One word of caution though, and this gets to the heart of why this issue is tricky to fix, if you only count the number of characters, you won't get a consistent newline experience. This is because the characters can vary in width depending on the font family, the font size, the font weight, and what characters make-up the label (e.g. W is wider than I). For the multi-text vertical alignment, I'm not sure I follow. Do you have a simplified test-app that I can see the issue with?
... View more
10-13-2021
07:17 AM
|
0
|
1
|
3954
|
|
POST
|
It's a good question @gggg. Here is our official documentation on the subject: https://developers.arcgis.com/documentation/mapping-apis-and-services/security/security-best-practices/#api-key-security In short, it's a good idea to limit your API key to consume only the services you require, and use the allowed referrer to limit usage to your app's URL. Also, you should monitor the API key's usage, and delete it when you're done, and/or rotate your API key as needed.
... View more
10-08-2021
06:47 AM
|
0
|
0
|
874
|
|
POST
|
Does the error only occur in that version of Safari, and not in other browsers? That error looks like the API is not getting loaded properly.
... View more
10-04-2021
08:59 AM
|
0
|
0
|
1341
|
|
POST
|
What happens if you provide the fully qualified URL to the png file? Can you provide a simplified test app that reproduces the issue on something like codepen?
... View more
10-01-2021
07:22 AM
|
0
|
1
|
2939
|
|
POST
|
Hmm, can you provide a simplified test app so I can test on my end? Using something like codepen would be fine.
... View more
10-01-2021
07:19 AM
|
0
|
1
|
3292
|
|
POST
|
I'm talking about the symbol. This line in particular: var symbol = new PictureMarkerSymbol(xxxxxurl+ "Images/marker/inspection-map-markers-no-status.png" The symbol resource needs to be available to the print server. So if it's hosted locally, and the app is hosted locally, and the print server can't access the local symbol resource, then the printout would be missing those symbols. Does that make sense?
... View more
09-30-2021
08:58 AM
|
0
|
3
|
3304
|
|
POST
|
Hi @ADITYAKUMAR1, my hunch is that the symbol is not accessible to the print server. If it's being locally hosted, try hosting it publicly and see if that helps.
... View more
09-30-2021
07:14 AM
|
0
|
1
|
3310
|
|
POST
|
Thank you for reporting this issue @YashvitNaik. It looks like the lineWidth property is not being properly honored. We are currently investigating, and I will respond this post when we have an update to share. As a workaround, if you manually add newline escapes ("\n") to the text, it will print better. Example (ignore the missing symbols as the Esri Icon Font is not installed on the print service server): https://codepen.io/noash/pen/ExXGVKd?editors=1000
... View more
09-27-2021
12:03 PM
|
1
|
2
|
4039
|
|
POST
|
Thanks for posting your question here @AlexCopli. Can you share a simplified reproducible test app that demonstrates this behavior? I'd like to see how you are doing this. We have what I think is a similar sample to what you are trying to accomplish, and it seems to work: https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=intro-graphics
... View more
09-27-2021
10:42 AM
|
0
|
0
|
2321
|
|
POST
|
You could use a TextSymbol to add a label. Here is an example of doing that (but with Esri Icon instead of a svg): https://codepen.io/noash/pen/PojXoRW?editors=1000 Another good option would be to use CIMSymbol. Here is a sample that uses both CIM and labels to create high quality features: https://developers.arcgis.com/javascript/latest/sample-code/cim-symbols/
... View more
09-27-2021
10:34 AM
|
1
|
0
|
2648
|
|
POST
|
Good work @DaveAdams, thank you for sharing your solution here.
... View more
09-24-2021
06:36 AM
|
0
|
0
|
6127
|
|
BLOG
|
“Autumn is a second spring when every leaf is a flower.” https://en.wikipedia.org/wiki/Albert_Camus Welcome to the autumnal release of the ArcGIS API for JavaScript. We fixed 27 bugs. Created or updated 7 samples. Improved performance. Updated layers, widgets, and made many more enhancements. Buckle up. Performance enhancing improvements For complex polygons with many vertices, layer draw time has significantly improved. While your mileage may vary, most cases will see at least a 2-3x improvement. We've also added some optimizations for the way we handle maps with a large number of feature collections. These optimizations have resulted in an improved start time and an improved frame rate for smoother map panning. At version 4.19, we improved the performance of point FeatureLayers hosted on ArcGIS Online. Version 4.21 brings these same enhancements to ArcGIS Enterprise. This Arctic sea ice layer loads over 5x faster than the same layer in 4.20. https://developers.arcgis.com/javascript/latest/release-notes/#performance-improvements Orderly conduct You can configure the order features are drawn in the view by setting the orderBy property of a FeatureLayer, CSVLayer, GeoJSONLayer, and OGCFeatureLayer. In layers with date fields that have many overlapping features, this property allows you to ensure the most recent features are drawn on top of older ones. This property is also important in proportional symbol maps where smaller features are typically rendered on top of large ones to maximize the visibility of overlapping features in the view. Control the drawing order of features https://developers.arcgis.com/javascript/latest/release-notes/#control-the-drawing-order-of-features >2 Dimensions SceneView now allows you to fully leverage your WGS84 scene layers by combining them with Web Mercator layers in local scenes. Local scenes now support geographic coordinate systems, giving you more flexibility in displaying data. Additionally, SceneView now uses WebGL2 (if available in the browser) as the underlying rendering engine. This change is the basis for future visualization capabilities and performance enhancements. Local scene support for WGS84 https://developers.arcgis.com/javascript/latest/release-notes/#3d-updates Visit widget exhibits The SnappingControls widget was added to provide a simple user interface to handle all snapping functionality. This widget provides the ability to control whether snapping is enabled, which layers to snap to, and other snapping settings. SnappingControls can only be used in conjunction with the Sketch, SketchViewModel, Editor, and EditorViewModel. The SketchViewModel has been updated to override the active drawing symbology, if there is a pointSymbol, polygonSymbol, or polylineSymbol set. The FeatureTable widget added support for the following layer types: CSVLayer, GeoJSONLayer, ImageryLayer, and WFSLayer. The TimeSlider widget has been updated to support custom actions, which allows you to execute custom code such as such as setting the timeExtent to a specific date or copying the timeExtent to the browser's clipboard. The Popup widget has been updated to display an error message if any errors occur when accessing its content. You can override what content is queried and displayed in the Popup or Feature widgets with the featureViewModelAbilities and abilities properties, respectively. The Search widget suggestion behavior was enhanced to make the search experience smoother and faster. https://developers.arcgis.com/javascript/latest/release-notes/#widget-updates More modern documentation A new guide page details how you can use the Calcite Design System in your applications. Browse the library of Calcite icons and view samples that use Calcite components with the ArcGIS API for JavaScript. The CIM Symbol Builder has been updated to support line and polygon symbols. Combine different symbol layers, update symbol layer properties, and watch how the CIMSymbol updates. When you've created your perfect symbol, get the symbol JSON and use it to create CIMSymbols in your own applications. CIM Symbol Builder - support for lines and polygons https://developers.arcgis.com/javascript/latest/release-notes/#documentation-updates Further reading Want more? We also have clustering updates. Utility Network updates. WebMap persistence updates. API key updates. Check out the release notes and the release blog to experience all these great new features today. References Release Blog https://www.esri.com/arcgis-blog/products/js-api-arcgis/developers/whats-new-in-the-arcgis-api-for-javascript-version-4-21/ 4.21 Release Notes https://developers.arcgis.com/javascript/latest/guide/release-notes/index.html 4.21 Samples https://developers.arcgis.com/javascript/latest/sample-code/?tagged=4.21 3.38 What’s New https://developers.arcgis.com/javascript/3/jshelp/whats_new.html Breaking Changes across all 4x releases https://developers.arcgis.com/javascript/latest/guide/breaking-changes/index.html
... View more
09-22-2021
03:21 PM
|
2
|
0
|
2097
|
|
POST
|
Hi @DaveAdams, this is an interesting issue. Could you share some code or a test-app that reproduces this behavior? I would like to see how you create the labels for the featureLayer so that they can display but not print. Is the behavior any different if you use the ArcGIS Online utility print service? "https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task"
... View more
09-21-2021
08:21 AM
|
0
|
0
|
6153
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 1 | 04-14-2026 11:59 AM | |
| 1 | 05-13-2026 10:29 AM | |
| 1 | 04-10-2026 09:11 AM | |
| 1 | 03-24-2026 11:39 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|