POST
|
Hi @timfreisen , For Developer Edition, you can write css style to override the default UI of map scale bar. The css selector is '.esri-scale-bar'. Like this:
... View more
|
0
|
0
|
32
|
POST
|
Hi @MKa , please try the following code snippet import { moduleLoader } from 'jimu-core'
const [esriConfig] = await loadModules(['esri/config']);
esriConfig.request.interceptors.splice(0, 0, myInterceptor);
... View more
04-08-2025
06:49 PM
|
0
|
2
|
320
|
POST
|
Hi @MattCashen , thank you for reporting this issue. You mentioned two cases (scale 282 and scale 283). Let me explain them separately. This is the basemap used by the app - https://services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer. I was happy to see the implementation of scale limits for maps within experience builder. However, I'm running into some unusual behavior with mine. My map has many cache layers in it and right now they are all cached down to the 282 scale. I've been playing around with setting the map scale limit at 282. I have the search widget in my experience and one of the layers you are able to search is parcels. I have the search tool set up with the action to select and zoom to a parcel after a successful search is done. The zoom is set to automatic zoom scale. Currently if you search for a smaller parcel it zooms down to the 282 scale, but my cache layers disappear as if it the current scale level is outside the cached scales. It is an bug for scale 282. The final scale range is affected by the map LODs. The initial max scale is 282 (view.constraints.maxScale). The API will look for a scale in LODs that is greater than 282 and closest to 282. This scale is 282.124294, so 282.124294 is the final scale (view.constraints.effectiveMaxScale) used by the API. When searches for parcels, the zoom-to message action calls view.goTo(extent) to change the extent of the map. However, after calling this method, the value of view.scale is 282.1242939999793, which is close to view.constraints.effectiveMaxScale (282.124294), but it is still smaller than effectiveMaxScale, which is wrong. effectiveMaxScale should be effective for all scenes to ensure that view.scale >= view.constraints.effectiveMaxScale, so this should be an API bug. We will fix this issue in the next release. Even more peculiar is that if I set the map scale limits to 283 and repeat the process it then zooms down only to the 564 scale. And after this is done you are not even able to manually zoom the map in beyond 564 using either the scroll wheel or the map zoom buttons. It is the expected behavior for scale 283. As mentioned above, the final scale range will be affected by the map LODs. The initial max scale is 283 (view.constraints.maxScale). The API will look for a scale in LODs that is greater than 283 and closest to 283. This scale is 564.248588, so 564.248588 is the final scale (view.constraints.effectiveMaxScale) used by the API. So this is the expected behavior. I think you can set the scale to 283 as a workaround now, we will fix the issue in case1 in the next release.
... View more
03-03-2025
10:29 PM
|
1
|
0
|
579
|
POST
|
Hi @IkelosDev
In fact, addOrRemoveDataOnMap, drawDataOnMap, drawDataRecordSet and updateDrawnDataRecordSet are internal methods used by map message actions & data actions. In this release, we removed these codes and provided better alternatives.
Here is the code snippet to create layer by data source and add it to map.
async function addDataSourceToMap(jimuMapView, dataSource) {
const layer = await dataSource.createJSAPILayerByDataSource();
const jimuLayerView = await jimuMapView.addLayerAndCreateJimuLayerView(layer, dataSource);
return jimuLayerView;
}
If you want to remove the created layer, you can call jimuMapView.removeJimuLayerView(jimuLayerView).
... View more
12-10-2024
05:44 PM
|
0
|
1
|
513
|
POST
|
@MohammedHilal_K Can you try calling jimuMapView.addLayerToMap() serially to solve this problem? Similar to the following code
async function addMultipleLayersToMapOneByOne(items) {
for (const item of items) {
const { dataSourceId, targetLayerId } = item;
await jimuMapView.addLayerToMap(dataSourceId, targetLayerId);
}
}
... View more
10-16-2024
12:07 AM
|
0
|
2
|
401
|
POST
|
@MohammedHilal_K
Thanks for providing more details. This is a bug and will be fixed in next release.
... View more
10-09-2024
06:27 PM
|
0
|
0
|
726
|
POST
|
Hi @MohammedHilal_K ,
Are there any errors in the browser console? Which data actions are missing? Is it only zoom to and pan to that are missing, or are they all missing? It would be great if you could upload a screenshot of the data actions.
... View more
10-09-2024
02:30 AM
|
0
|
2
|
1538
|
POST
|
Hi @PartyPelican ,
For performance reason, JimuLayerView will not automatically create data source. If data source has been created by some widgets, then JimuLayerView.getLayerDataSource() gets the data source. If the data source has not been created, you can create the data source through the asynchronous method JimuLayerView.createLayerDataSource().
... View more
10-07-2024
08:24 PM
|
1
|
0
|
663
|
POST
|
This is a breakchange of JS API. From JS API 4.27, The Popup widget loading is deferred until the view is ready and finished updating, and will only be loaded if View.popupEnabled is set to true (which is the default), when View.openPopup() is called, or when some widgets need the popup, such as Search. That is to say, in API 4.26, after View is initialized, View.popup is a Popup instance, but in API 4.27, after View is initialized, View.popup is just an ordinary object. Only after calling the View.openPopup() method, View.popup will become a Popup instance. See details here - https://developers.arcgis.com/javascript/latest/breaking-changes/#427 I think you can call View.openPopup(), when this method is resolved, you can call view.popup.fetchFeatures().
... View more
08-18-2024
08:04 PM
|
0
|
0
|
420
|
POST
|
Hi @MK13 , When you click map, data source selection will change. JimuLayerView will automatically update layer.filter by data source. So JimuLayerView overrides your layer.filter. You can update 'where' by dataSource.updateQueryParams() method, Here is the solution, please have a try. async addLayerHandler (evt) {
evt.preventDefault()
await jmv.whenAllJimuLayerViewLoaded()
const jimuLayerViews = jmv.getAllJimuLayerViews()
jimuLayerViews.forEach(async (jimuLayerView) => {
const layer = jimuLayerView.layer
if (layer.type === 'feature' && (layer.title === 'OpenMarketSm' || layer.title === 'ExclusionZoneSm' || layer.title === 'ExclusionZoneSm')) {
let dataSource = null
if (jimuLayerView.layerDataSourceId) {
dataSource = await jimuLayerView.createLayerDataSource()
}
if (dataSource) {
dataSource.updateQueryParams({
where: "ServiceAreaType ='Comm. Recycling'"
}, props.widgetId)
}
}
})
}
... View more
08-16-2024
02:16 AM
|
1
|
0
|
649
|
POST
|
ArcGIS JavaScript API doesn't support border for highlight options, see details here - https://developers.arcgis.com/javascript/latest/api-reference/esri-views-View.html#HighlightOptions
... View more
08-06-2024
06:37 PM
|
0
|
1
|
877
|
POST
|
Hi ShahranNewaz, Is your problem that you don't know the id of the layer to be exported? If you don’t know the layer id, how do you know which layer to export?
... View more
07-16-2024
07:00 PM
|
0
|
0
|
796
|
POST
|
Hi MohammedHilal_K, The webmapId is not the correct dataSourceId. Data source is a concept in Experience Builder. The only way to select a webmap/webscene data source is using the left data panel. Then you can check the dataSourceId by _appState.appConfig.dataSources in the console. Here is an example. The dataSourceId of the webmap is "dataSource_1", not the webmapId "33e58168249b42d49c4fb1b4f27728db".
... View more
06-24-2024
11:32 PM
|
0
|
0
|
883
|
POST
|
Hi MohammedHilal_K, Currently only Map widget can create JimuMapView. Can you share your code to create JimuMapView in the custom widget ?
... View more
06-24-2024
02:26 AM
|
0
|
0
|
908
|
POST
|
Hi @Dale_Honeycutt , thank you for providing the sample app. I can reproduce this issue on Android. I am looking into it.
... View more
03-04-2024
07:17 PM
|
0
|
0
|
1003
|
Title | Kudos | Posted |
---|---|---|
1 | 08-16-2024 02:16 AM | |
1 | 03-04-2024 12:12 AM | |
1 | 03-03-2025 10:29 PM | |
1 | 10-07-2024 08:24 PM | |
1 | 01-17-2024 10:27 PM |
Online Status |
Offline
|
Date Last Visited |
Monday
|