-
Notifications
You must be signed in to change notification settings - Fork 799
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
Dynamic layer cannot use both f:image and token #1180
Comments
Some more background and historical info would be helpful here from previous contributors to It appears to me that this is acting as designed in:
|
the esri-leaflet/src/Layers/DynamicMapLayer.js Lines 194 to 197 in 6cf7587
besides the service in @jptheripper's jsbin, you can also test with the one below. username: user1 |
This is absolutely perfect. We can confirm once this functionality is applied that f='image' and token work together as desired. |
Sorry, I am new to the whole process. How do we get the change applied to the source code? |
pull requests are always welcome. in this case, a new test similar to the one below would be extremely helpful. esri-leaflet/spec/Layers/DynamicMapLayerSpec.js Lines 359 to 367 in c313044
|
@jgravois thanks for input. And what should we do to this block that overrides on construction? esri-leaflet/src/Layers/DynamicMapLayer.js Lines 23 to 25 in 6cf7587
|
Yes I was about to comment that needs to be dealt with as well. image type should not be overridden just because there is a token or proxy |
Should it be dropped altogether? Not sure what the original intent was. Thanks! |
good catch @jwasilgeo. I forgot all about that. to implement this new feature you'd need to remove the if you want to take a stab at implementing the proxy logic for
maybe Pat figured that if folks wanted to work with secure layers they could just use |
In our test (we only use image, with and without token) simply commenting out the override worked for us. I imagine that may break other cases. Is it possible to just change the override to
|
- removed options.f conditional override during initialization of DynamicMapLayer (related to #1180); - standardized usage of params.token and params.proxy in "_buildExportParams" and "_requestExport" of DynamicMapLayer and ImageMapLayer; - prepended optional params.proxy in "_requestExport" of DynamicMapLayer and ImageMapLayer;
So, (because i am new to all this), how long does this take to propagate into the CDN |
@jptheripper in order for the fix in that Pull Request to become available for your use on the CDN, we must publish a new release. We intend to cut a new release soon. |
Thanks a ton! This is great. And you were so quick to respond :) |
Chrome 51
L.version
):0.7.7, 1.0.0?
L.esri.VERSION
):1.0.4, 2.0.3,
master
?Steps to reproduce the error:
What happens is the image parameter is ignored and request is sent with type f=json
I was expecting f=image to be respected. Feature service only loads half the time due to internal load balancer not having request on /arcgisoutput (which is why we need to use the f=image parameter)
https://jsbin.com/hiqequg/edit?html,output
The text was updated successfully, but these errors were encountered: