|
POST
|
What is your goal? You can use Map Notes to quickly add text to the map: https://developers.arcgis.com/javascript/latest/sample-code/layers-mapnoteslayer/ You can also extend the Sketch widget using the ViewModel, and assign a TextSymbol to the pointSymbol property: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Sketch-SketchViewModel.html#pointSymbol
... View more
10-19-2021
12:55 PM
|
1
|
1
|
4509
|
|
POST
|
Here's a great blog article about using the GeoPackage with ArcGIS Pro. https://www.esri.com/arcgis-blog/products/product/data-management/how-to-use-ogc-geopackages-in-arcgis-pro/ I don't think the ArcGIS API for JavaScript can't consume a GeoPackage directly. But if you can convert and publish as a feature layer, or as part of a webmap, then it should work fine.
... View more
10-19-2021
12:49 PM
|
1
|
0
|
1559
|
|
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
|
1614
|
|
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
|
3278
|
|
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
|
4046
|
|
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
|
898
|
|
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
|
1376
|
|
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
|
2979
|
|
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
|
3373
|
|
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
|
3385
|
|
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
|
3391
|
|
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
|
4131
|
|
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
|
2378
|
|
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
|
2683
|
|
POST
|
Good work @DaveAdams, thank you for sharing your solution here.
... View more
09-24-2021
06:36 AM
|
0
|
0
|
6230
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-25-2026 07:29 AM | |
| 1 | 07-01-2026 08:08 AM | |
| 1 | 04-14-2026 11:59 AM | |
| 1 | 05-13-2026 10:29 AM | |
| 1 | 04-10-2026 09:11 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|