|
POST
|
What errors are you seeing in the browser console? Can you post a link to the app, or share it via codepen?
... View more
01-29-2020
02:37 PM
|
0
|
3
|
4687
|
|
POST
|
Ok, I thought you had an app that toggled the visibility of individual sublayers of a WMSLayer. One thing you could do would be to check the visibleLayers property of the WMSLayer, that way you could ensure that the same state is always displayed whenever you want. Another option would be to use the 4x version of the ArcGIS API for JavaScript (4.14 is the current version). The LayerList works well with the sublayers of a WMSLayer. Example app: https://codepen.io/noash/pen/abzrRQb
... View more
01-29-2020
02:33 PM
|
0
|
0
|
2577
|
|
POST
|
Can you post a simple repro case on codepen or some other hosting site so I can see exactly what you're doing with the WMS sublayer visibility?
... View more
01-28-2020
02:23 PM
|
0
|
2
|
2577
|
|
POST
|
This should work. I would make sure that you have the correct order when searching for nested sublayers, as this has thrown me for a loop in the past. Here is a working sample that prints out nested sublayer info in the console: https://codepen.io/noash/pen/WNbWdyO Using this MapServer (with a couple levels of nested sublayers): Military (MapServer) Hope this helps.
... View more
01-27-2020
02:24 PM
|
0
|
0
|
1815
|
|
POST
|
Quick follow-up, we've fixed the <wb> issue, which will be available on js-next soon (and for the next release of the API). feedback-js-api-next/CHANGELOG.md at master · Esri/feedback-js-api-next · GitHub
... View more
01-24-2020
01:37 PM
|
0
|
1
|
4474
|
|
POST
|
Robert is correct, the Search dijit requires either a geocode service or a hosted feature layer. https://developers.arcgis.com/javascript/3/jsapi/search-amd.html#sources https://developers.arcgis.com/javascript/3/jssamples/search_multiplesources.html So I do not believe that it can work with a client-side feature layer.
... View more
01-22-2020
03:31 PM
|
0
|
0
|
1088
|
|
POST
|
Here is the list of Esri hosted fonts that you can consume in 4x applications: Labeling | ArcGIS API for JavaScript 4.14 Since version 4.8, due to our move to WebGL, fonts must be hosted in .pbf file format in order to be consumed. The above guide page lists all the fonts that Esri currently hosts.
... View more
01-22-2020
03:29 PM
|
2
|
1
|
3651
|
|
POST
|
Your solution sounds interesting. Would love to see a fiddle when you're done. I bet others would be curious to see your approach as well.
... View more
01-17-2020
08:41 AM
|
0
|
0
|
4982
|
|
POST
|
Hi Jeff, you can't use custom code or custom widgets if you're talking about an application hosted in ArcGIS Online. If you're hosting the app yourself, then you're fine, but AGO will not allow customized code like this for security reasons.
... View more
01-17-2020
08:33 AM
|
0
|
0
|
4982
|
|
POST
|
There are some limitations when working with the Print widget. It is designed to be a simple, out-of-the-box solution for most use cases. Typically, we'd recommend using the PrintTask if you want finer grained control over the printout. However, there are a couple of options that might be useful. First, you can modify the scale of the printout by changing the scale in the Print widget UI (under Advanced options) by setting the Set scale to true, and supplying a useful scale number (I used 40,000,000 as a test for the Print widget sample). Alternatively, you can also do this programmatically like in the codepen below. Another approach is to use the takeScreenshot() method. This is a more interactive tool that can allow a user to select (similar to preview) the target area for printing. We have a live working sample using a 3D SceneView. I hope this information is helpful. print scale sample (codepen) https://codepen.io/noash/pen/abzaQBe mapView.takeScreenshot() method doc MapView | ArcGIS API for JavaScript 4.14 Screenshot of SceneView sample Take a screenshot of a SceneView | ArcGIS API for JavaScript 4.14 edit: takeScreenshot() blog https://community.esri.com/people/RLibed-esristaff/blog/2018/12/20/screenshots-with-the-arcgis-api-for-javascript-html2canvas
... View more
01-16-2020
01:30 PM
|
2
|
10
|
4982
|
|
POST
|
Are you referring to the defaultPopupTemplateEnabled property? If so, we should have this added for the MapImageLayer Sublayer at the next (4.15) release. If not, here is a simple example of setting popups on a Sublayer: https://codepen.io/noash/pen/VwYBobd
... View more
01-15-2020
10:48 AM
|
0
|
1
|
5272
|
|
POST
|
For the measurement aspect, each widget (both area and distance measurement widgets) is designed to clear the previous measurement before starting a new one. It should be possible to use the appropriate measurement widget's viewModel to create new measurements without clearing the old one(s), but you would need to code that functionality yourself. DistanceMeasurement2DViewModel | ArcGIS API for JavaScript 4.14
... View more
01-09-2020
03:49 PM
|
0
|
0
|
1326
|
|
POST
|
Are you asking how to publish and host tiled layers and feature layers on a non-ArcGIS server? Honestly, I'm not sure how to do that. The samples above show how to consume resources without using ArcGIS Enterprise. Some layers can be hosted and consumed (like VectorTileLayer, WebTileLayer, WMS, and WMTS) from a third-party server, and some cannot (e.g. MapImageLayer, FeatureLayer). For the FeatureLayer, you could still create one programmatically, but I think only ArcGIS Enterprise can host an actual FeatureLayer. Soon, the 4x version of the JS API will support WebFeatureLayer (which is currently supported at 3x). Your best bet is to: 1) review documentation for third party servers, like GeoServer, and OGC standards GeoServer Web Map Service | OGC 2) review our API reference for how to consume such layer types FeatureLayer | ArcGIS API for JavaScript 4.14 VectorTileLayer | ArcGIS API for JavaScript 4.14 WebTileLayer | ArcGIS API for JavaScript 4.14 WMTSLayer | ArcGIS API for JavaScript 4.14 WMSLayer | ArcGIS API for JavaScript 4.14
... View more
01-08-2020
02:03 PM
|
0
|
2
|
4127
|
|
POST
|
Here are a couple more samples that do not use ArcGIS Enterprise as the primary data source: KMLLayer | ArcGIS API for JavaScript 4.14 OpenStreetMapLayer | ArcGIS API for JavaScript 4.14 WebTileLayer | ArcGIS API for JavaScript 4.14 WMSLayer | ArcGIS API for JavaScript 4.14 WMTSLayer | ArcGIS API for JavaScript 4.14 Select WMTSLayer sublayer | ArcGIS API for JavaScript 4.14 GeoJSONLayer | ArcGIS API for JavaScript 4.14 GeoRSSLayer | ArcGIS API for JavaScript 4.14 Intro to CSVLayer | ArcGIS API for JavaScript 4.14 CSVLayer - Project points on the fly | ArcGIS API for JavaScript 4.14 Custom TileLayer | ArcGIS API for JavaScript 4.14 Custom DynamicLayer | ArcGIS API for JavaScript 4.14 Custom LERC Layer | ArcGIS API for JavaScript 4.14 CIMSymbol | ArcGIS API for JavaScript 4.14 Satellites in 3D view | ArcGIS API for JavaScript 4.14
... View more
01-08-2020
01:44 PM
|
0
|
7
|
4127
|
|
POST
|
Hi Matthieu, sorry to hear about the trouble. It sounds like you are publishing a custom print service, from ArcMap to ArcGIS Enterprise, is that correct? And the custom print service that you published, always throws the error you mentioned, but it also prints some layers, but not others? And all layers are secure. Is that correct? I'm not sure how to troubleshoot this from an ArcGIS API for JavaScript perspective, but I would like to know ore information to see if I can help and/or reproduce the issue. I also recommend 2 things: 1) Can you try this same workflow from ArcGIS Pro instead of ArcMap? Share a print service web tool with custom layouts from ArcGIS Pro—Documentation (10.7) | ArcGIS Enterprise 2) Try posting your question in the ArcGIS Enterprise space, as you may get better results from someone more familiar with publishing services.
... View more
01-08-2020
12:17 PM
|
0
|
1
|
1632
|
| 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 |
yesterday
|