Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Requests for dynamicMapLayer are not going through Proxy #862

Closed
stevenrcfox opened this issue Oct 3, 2016 · 1 comment · Fixed by #883
Closed

Image Requests for dynamicMapLayer are not going through Proxy #862

stevenrcfox opened this issue Oct 3, 2016 · 1 comment · Fixed by #883
Labels

Comments

@stevenrcfox
Copy link

  • Browser and version:
    IE11
  • Version of Leaflet (1.0.1):
  • Version of esri Leaflet (2.0.3):

Steps to reproduce the error:

Call a dynamicMapLayer via a proxy

Results:
Service is correctly called via proxy
Image requests do not get called via proxy

Expected Results:
Image requests should also go through proxy

Reason:
Our Arcgis server is locked down, and the only access is via the proxy, images cannot be retrieved directly from the arcgis server.

@jgravois
Copy link
Contributor

jgravois commented Oct 3, 2016

i can reproduce the error you've described.
until its fixed, try just requesting images directly (instead of fetching JSON which includes a url).

L.esri.dynamicMapLayer({
  url: './proxy?http://server/arcgis/rest/services/Name/MapServer',
  f: 'image'
}).addTo(map);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants