|
POST
|
Hi @GeoJason - here's an example of a polygon CIMSymbol with multiple CIMPictureFill symbol layers: https://codepen.io/annefitz/pen/YzvzOWm?editors=1000 Hope that helps – let me know if you have any further questions!
... View more
10-25-2022
01:00 PM
|
1
|
0
|
1379
|
|
POST
|
@MatejVrtich - We've installed a fix for this for the November release. You can view the fix using the /next version of the API. Here's a basic app that loads your webmap using the /next version: https://codepen.io/annefitz/pen/BaxeZYw Let me know if you are still running into any issues. Thank you!
... View more
10-18-2022
10:37 AM
|
1
|
0
|
5859
|
|
POST
|
Hi @ADITYAKUMAR1 - you can do this via the updateBasemapsCallback property, here's an example: let basemapGallery = new BasemapGallery({
view: view,
source: {
query: {
title: "United States Basemaps",
owner: "Esri_cy_US"
},
updateBasemapsCallback: function(items) {
// create custom basemap to be added to the array of portal basemaps
let bm = new Basemap({
portalItem: {
id: "8dda0e7b5e2d4fafa80132d59122268c" // WGS84 Streets Vector webmap
}
});
// add basemap to the array
items.push(bm);
// return the array of basemaps
return items;
}
}
}); Here's the snippet within a test app: https://codepen.io/annefitz/pen/rNvPKNr The documentation can be found here: https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-BasemapGallery-support-PortalBasemapsSource.html#UpdateBasemapsCallback
... View more
10-13-2022
11:57 AM
|
1
|
3
|
3669
|
|
POST
|
Hi @MatejVrtich, this appears to be a bug - we'll take a look. Thanks for letting us know!
... View more
10-12-2022
12:40 PM
|
1
|
0
|
5876
|
|
POST
|
Hi @jotwe - there are two things that might be going on here. 1. Effects are not supported in 3D SceneViews, that's documented as a known limitation here: https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#effect 2. For 2D MapViews, we unfortunately have a bug with effects and WMSLayer at version 4.24. It has already been fixed for the upcoming release (planned for November). In the meantime, you can check out the fix by using the development version of the API at <script src="https://js.arcgis.com/next/"></script>
... View more
09-20-2022
07:44 AM
|
1
|
1
|
1353
|
|
POST
|
Hi @NicholasWright - this works as expected if you use the SimpleFillSymbol constructor instead of autocasting. Here's an updated version of your example: https://codepen.io/annefitz/pen/yLjXvgO Hope this helps!
... View more
09-20-2022
07:31 AM
|
1
|
0
|
899
|
|
POST
|
Hi @RobertSandu - you need to set the spatialReference on your layer and the MapView (not the map). https://codepen.io/annefitz/pen/MWVNBmw Now the layer is fetching data after the GetCapabilities request, but I still get a white screen. Is this expected? The GetMap requests return white for me, for example: https://api.emapsite.com/dataservicenoauth.svc/api/wms/xais?width=1228&height=395&bbox=-29464551.406024616%2C-15133359.454438109%2C30264551.406024616%2C4079177.687874141&srs=EPSG%3A27700&format=image%2Fpng&request=GetMap&service=WMS&styles=&transparent=TRUE&version=1.1.1&layers=OS%20MasterMap%20Topo%20Schema9%20NoText_Greyscale&_ts=1661874295354
... View more
08-30-2022
08:46 AM
|
0
|
0
|
1531
|
|
POST
|
Hi @Vakhtang_Zubiashvili - You can use esri/request with the WMSLayer.featureInfoUrl to get the WMS layer info. Here's an example: https://codepen.io/richiecarmichael/pen/rNdENop?editors=1001
... View more
08-30-2022
08:07 AM
|
0
|
2
|
5609
|
|
POST
|
Please tell me what is in your code view? I had a MapView with that view name. What do you have? I was using a MapView. But either MapView or SceneView should work. In your code Basemap.fromId("hybrid") where did you define it - Basemap? This is an API class "esri/Basemap" that I imported at the name time as my MapView and BasemapGallery: https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html As a programmer, I got the idea that I should define a new Basemap object in which I should insert and define property baseLayers , which in turn, I will take from WMSLayer, in which, in turn, I will insert my URL. Something like that, yes? Yes, that sounds about right!
... View more
08-29-2022
08:29 AM
|
0
|
0
|
1507
|
|
POST
|
Hi, you can add your own basemaps via the source property of the BasemapGallery. Something like this: const world = new WMSLayer({ url: "my Url "});
// create a basemap with your WMS layer as the base layer
const worldBasemap = new Basemap({
baseLayers: [world]
});
const basemapGallery = new BasemapGallery({
view: view,
// set the source to an array of basemaps
// here we are including the worldBasemap from your WMSLayer
// and the Esri hybrid basemap
source: [worldBasemap, Basemap.fromId("hybrid")]
});
view.ui.add(basemapGallery, "top-right");
... View more
08-24-2022
03:23 PM
|
0
|
2
|
1565
|
|
POST
|
Hi @BrentGrossman - Is your API key configured with the geocoding location service? This may be why search is not currently working for you. If you enable geocoding, both search and the basemaps should work when you have the global API key set (esriConfig.apiKey = ...)
... View more
08-19-2022
09:36 AM
|
0
|
1
|
728
|
|
POST
|
Hi @JustinKirtz1 - all of the classes under the tasks folder have been deprecated since version 4.20, and were removed from the API at version 4.24 in favor of the new rest modules. Here's a blog that explains this change in more detail: https://www.esri.com/arcgis-blog/products/js-api-arcgis/developers/rest-is-up-to-the-task/ To get rid of this error in version 4.24, you will need to update your project to use esri/rest/support/ProjectParameters instead of esri/tasks/support/ProjectParameters
... View more
08-19-2022
08:35 AM
|
2
|
1
|
1741
|
|
POST
|
Here's an example showing how you can update feature geometries using applyEdits: https://codepen.io/annefitz/pen/jOzXQxv?editors=100
... View more
08-18-2022
08:47 AM
|
1
|
0
|
1281
|
|
POST
|
Here's an example using a Calcite component, radio button group, to update the leadingLayers based in the Swipe widget based on the radio selection: https://codepen.io/annefitz/pen/poLVeLq
... View more
08-05-2022
10:04 AM
|
1
|
0
|
1828
|
|
POST
|
Yes this is possible! Just update the leadingLayers or trailingLayers properties on Swipe with the layers you want to be included on each side after you click the radio button.
... View more
08-05-2022
08:44 AM
|
0
|
0
|
1836
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 weeks ago | |
| 1 | 4 weeks ago | |
| 1 | 03-04-2026 08:01 AM | |
| 2 | 03-03-2026 05:23 AM | |
| 2 | 03-03-2026 05:53 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|