|
POST
|
For that background, we'll expose a configurable property on the view to modify. It should be available on `next` and will release with 4.16 in a month or so. feedback-js-api-next/CHANGELOG.md at master · Esri/feedback-js-api-next · GitHub example: var view = new MapView({ container: "viewDiv", map: map, background: { // autocasts as new ColorBackground() color: "gray" // autocasts as new Color() } });
... View more
06-09-2020
03:03 PM
|
1
|
1
|
5033
|
|
POST
|
Can you share a function test app that shows this? I tested and could not reproduce.
... View more
05-12-2020
03:34 PM
|
0
|
1
|
995
|
|
POST
|
Tanu already explained how you can achieve this with the MapImageLayer, which is to override the default renderer. Take a look at this example: MapImageLayer - set renderer on sublayers Another option is just to use a light or dark gray vector basemap.
... View more
05-04-2020
11:07 AM
|
3
|
1
|
2950
|
|
POST
|
I think that middle call is just getting general information about ArcGIS Server (e.g. version, etc.). That's strange that if the service is public and not secure, it should not try to authenticate. Does the ArcGIS Server allow http and https connections? To check: Sign in to your ArcGIS Server Administrator Directory at https://gisserver.domain.com:6443/arcgis/admin. Browse to security > config > update. Check if the Protocol parameter is set to HTTP Only, HTTPS Only, or to allow both HTTP and HTTPS. Not that I would recommend only using HTTP, but it might be a good test. You should be using HTTPS anyway, but I understand that if this is a development environment, you don't want to go through the hassle.
... View more
04-23-2020
11:18 AM
|
0
|
1
|
1063
|
|
POST
|
Currently, label priorities can be established using a where expression: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-LabelClass.html#where This allows you to only label features that evaluate to `true`. You can also create multiple label classes with different where expressions: Sample Code | ArcGIS API for JavaScript 4.15 Down the road we are considering different methods to establish label priorities. Also, please consider upgrading to the latest version of the JS API, which is 4.15. Hope this helps!
... View more
04-23-2020
09:04 AM
|
1
|
6
|
2961
|
|
POST
|
Similar to your other question, https://community.esri.com/thread/251863-download-shown-map-as-pdf , you can also use the Print widget and select an image file type in the File format dropdown.
... View more
04-21-2020
10:46 AM
|
1
|
0
|
1412
|
|
POST
|
mvolz47 wrote: Does this bug mean that you cannot have custom page sizes in your print template or just not custom print template names? Sorry for not replying to this sooner. I believe the issue affects custom page sizes as well, but I have not tested that to verify.
... View more
04-21-2020
10:41 AM
|
0
|
0
|
2895
|
|
POST
|
Hi Markos. Unfortunately, I haven't found a workaround to using the Print widget with custom print templates. The only suggestion I have right now is to use /next (https://github.com/Esri/feedback-js-api-next). I've been trying to think of a way to use RequestInterceptor (config | ArcGIS API for JavaScript 4.15 ) but haven't figured out a solution there.
... View more
04-21-2020
10:39 AM
|
0
|
0
|
2895
|
|
POST
|
Ok, when you get a chance, can you please test with /next and let me know how it goes? The issue with custom template formats and layouts should be resolved, and if so, it will release at 4.16 this summer. https://github.com/Esri/feedback-js-api-next And yes, behind the scenes we do some name convention formatting for the Esri default templates. This formatting ensures that printing will work well across the Esri platform and with different versions of the print service, but we will look to see if we can add this information to the documentation so that people know better what to expect.
... View more
04-20-2020
08:57 AM
|
1
|
3
|
11192
|
|
POST
|
Another option is to try the trustedServers property: esriConfig.request.trustedServers - API Reference
... View more
04-14-2020
11:22 AM
|
1
|
2
|
2014
|
|
POST
|
For sure. I tested these properties at 4.14 and they both appear to work as expected: https://codepen.io/noash/pen/eYppPay
... View more
04-14-2020
11:15 AM
|
0
|
1
|
1462
|
|
POST
|
Hi, can you post a hosted sample (like on codepen or jsbin) that shows this behavior? I tested these properties at 4.15 and they both appear to work as expected: https://codepen.io/noash/pen/WNQQKaM
... View more
04-14-2020
09:47 AM
|
0
|
3
|
1462
|
|
POST
|
Nicolas GIS wrote: Indeed, after having renamed my templates, the print widget of my app built with 4.14 was broken as well and also get the very same error 400 ! I'm not sure I follow. So you renamed the templates from something like: Choice List: [ A3 Landscape, A3 Portrait, A4 Landscape, A4 Portrait, Letter ANSI A Landscape, Letter ANSI A Portrait, Tabloid ANSI B Landscape, Tabloid ANSI B Portrait, MAP_ONLY ] to: Choice List: ['map-only', 'a3-landscape', 'a3-portrait', 'a4-landscape', 'a4-portrait', 'letter-ansi-a-landscape', 'letter-ansi-a-portrait', 'tabloid-ansi-b-landscape', 'tabloid-ansi-b-portrait`] And this does not work with the 4.14 print widget? But custom names (e.g. not ones in the Choice List by default) do work fine?
... View more
04-14-2020
09:26 AM
|
0
|
3
|
8297
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Wednesday | |
| 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 |
Online
|
| Date Last Visited |
9 hours ago
|