AnsweredAssumed Answered

ESRI JS API 4.4: layer maxscale and minscale not respected when browser zoom is not 100%

Question asked by FluxysIT2 on Sep 20, 2017
Latest reply on Sep 20, 2017 by FluxysIT2

We have a web application using JS API 4.4.

 

We have added a mapimage layer that contains layers that are visible at all scales.

 

This functions correctly, but when we change the zoom of the browser (Internet Explorer or Chrome) to a value different from 100%, the layer is no longer displayed at all scales: in some scale intervals the layer does not show up anymore.

 

As far as we have investigated, the request from the web application to ArcGIS Server is different for different browser zooms: e.g. the DPI parameter changes, which gives inconsistent response results

 

http://geoqua01/arcgis/rest/services/Fluxys_asset_infrastructure/MapServer/export?bbox=181363.23462613762%2C161591.95100995694%2C234676.8829201009%2C180906.57297253422&bboxSR=31370&imageSR=31370&size=1612%2C584&dpi=96&format=png32&transparent=true&layers=show%3A22%2C47%2C84%2C67&f=image

=> this returns a correct image

 

http://geoqua01/arcgis/rest/services/Fluxys_asset_infrastructure/MapServer/export?bbox=181363.23462613762%2C161591.95100995694%2C234676.8829201009%2C180906.57297253422&bboxSR=31370&imageSR=31370&size=1612%2C584&dpi=240&format=png32&transparent=true&layers=show%3A22%2C47%2C84%2C67&f=image

=> this returns an image where some of the layers are not visible

 

Has anyone experienced this in their applications?

 

Many thanks in advance

Outcomes