You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.
When consuming ArcGIS FeatureServer layer(s) which contain point features, in the web app which uses esri-leaflet with esri-leaflet-renderers, rendering/redrawing those fails due to Uncaught TypeError
and try to pan/zoom the map with the browser console opened. Note that there will be many errors as below
In our app this causes the map to flicker and the points rendered disappears when the user pan/zoom.
Logs
See below or in the above screenshots
Uncaught TypeError: this._updateBounds is not a function
setStyle Path.js:109
setFeatureStyle FeatureLayer.js:310
_redraw FeatureLayer.js:405
redraw FeatureLayer.js:373
_updateLayer FeatureLayer.js:103
createLayers FeatureLayer.js:135
_addFeatures FeatureManager.js:254
System Info
leaflet: 1.9.3 or 1.9.4
esri-leaflet: ^3.0.10
esri-leaflet-renderers: ^3.0.0
or see the link to the stackblitz project in the Reproduction section above
The problem is reproducible in Chrome Version 115.0.5790.170 and Firefox 115.0.3 (64-bit) on MacOS Ventura 13.5 (22G74)
Additional Information
It seems that when the esri-leaflet creates layers from ArcGIS feature server metadata for points, the resulting layer does not have _updateBounds function and when the leaflet tries to refresh/redraw this layer it fails with an error. Please note that the problem seems to exist only for Points with the specific style configuration.
Potentially, the fix might need to be done in the leaflet to check if _updateBounds function is defined - see https://github.com/Leaflet/Leaflet/blob/main/src/layer/vector/Path.js#L109
The text was updated successfully, but these errors were encountered:
Hi @ryaa, thank you for logging this issue. Just to check: does the layer work ok if not using the esri-leaflet-renderers module? If so, sounds like this is probably an issue with esri-leaflet-renderers and we should move this discussion over to that repo.
Describe the bug
When consuming ArcGIS FeatureServer layer(s) which contain point features, in the web app which uses esri-leaflet with esri-leaflet-renderers, rendering/redrawing those fails due to Uncaught TypeError
Reproduction
To reproduce please open this link https://stackblitz.com/edit/js-gvb3sg?file=index.html, set your ArcGIS API key in the below line
and try to pan/zoom the map with the browser console opened. Note that there will be many errors as below
In our app this causes the map to flicker and the points rendered disappears when the user pan/zoom.
Logs
See below or in the above screenshots
System Info
leaflet: 1.9.3 or 1.9.4
esri-leaflet: ^3.0.10
esri-leaflet-renderers: ^3.0.0
or see the link to the stackblitz project in the Reproduction section above
The problem is reproducible in Chrome Version 115.0.5790.170 and Firefox 115.0.3 (64-bit) on MacOS Ventura 13.5 (22G74)
Additional Information
It seems that when the esri-leaflet creates layers from ArcGIS feature server metadata for points, the resulting layer does not have
_updateBounds
function and when the leaflet tries to refresh/redraw this layer it fails with an error. Please note that the problem seems to exist only for Points with the specific style configuration.Potentially, the fix might need to be done in the leaflet to check if
_updateBounds
function is defined - see https://github.com/Leaflet/Leaflet/blob/main/src/layer/vector/Path.js#L109The text was updated successfully, but these errors were encountered: