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
Version of esri Leaflet (L.esri.VERSION):
v2.2.4 - Wed Mar 20 2019 16:03:22 GMT-0700 (Pacific Daylight Time)
ArcGIS Version
10.31
Steps to reproduce the error:
We have two ArcGIS Server environments, one for DEV and one for PROD.
The DEV MapService reports: Supports Dynamic Layers: false
The PROD MapService reports: Supports Dynamic Layers: true
When the overlayUrl is pointing to the MapService in DEV which has "Supports Dynamic Layers: false" the JSON output contains a parameter called "href" which contains the url to the export image.
When the overlayUrl is pointing to the MapService in PROD which has "Supports Dynamic Layers: true" the JSON output contains a parameter called "imageData" which is a base64 encode of the export image.
assumes there is an output property in the returned JSON called "href" which in the case of my MapService in PROD, its not returning an "href" but instead an "imageData" property containing a base64 image. What happens in this case is this._renderImage is passed a value of undefined which results in a request of /proxy.ashx?undefined
I propose a check for response.href or something similar to get around this issue:
This would then allow the renderImage method to look at response.imageData as href == undefined. This issue only happens for resources that need to be passed thru a proxy.
Regards,
Chris
The text was updated successfully, but these errors were encountered:
Browser and version:
Chrome Version 71.0.3578.98
Version of Leaflet (
L.version
):1.5.1
Version of esri Leaflet (
L.esri.VERSION
):v2.2.4 - Wed Mar 20 2019 16:03:22 GMT-0700 (Pacific Daylight Time)
ArcGIS Version
10.31
Steps to reproduce the error:
We have two ArcGIS Server environments, one for DEV and one for PROD.
The DEV MapService reports: Supports Dynamic Layers: false
The PROD MapService reports: Supports Dynamic Layers: true
The MapService Layer '19' is being shown using:
When the overlayUrl is pointing to the MapService in DEV which has "Supports Dynamic Layers: false" the JSON output contains a parameter called "href" which contains the url to the export image.
When the overlayUrl is pointing to the MapService in PROD which has "Supports Dynamic Layers: true" the JSON output contains a parameter called "imageData" which is a base64 encode of the export image.
The ESRI Leaflet JavaScript code at:
esri-leaflet/src/Layers/DynamicMapLayer.js
Line 185 in adedb89
I propose a check for response.href or something similar to get around this issue:
This would then allow the renderImage method to look at response.imageData as href == undefined. This issue only happens for resources that need to be passed thru a proxy.
Regards,
Chris
The text was updated successfully, but these errors were encountered: