Coder Social home page Coder Social logo

Comments (4)

Rudolf-May avatar Rudolf-May commented on May 20, 2024

I think I have located the cause of the problem.
Having a shiny-server working behind an apache proxy a response status code "301 moved permanently" is returned by the shiny-server.
In the source code of the wms.leaflet plugin there is a helper function to return the "request.responseText" when the request.status === 200 (line 484 of the source on github). So in the scenario with the apache proxy the responseText will not be returned.
The getfeatureinfo works as expected when the example app in my first post is served directly from the shiny server which then gives us a response status code 200.
I have posted an issue on the github page https://github.com/heigeo/leaflet.wms/issues asking to add request.status===301. If this will be accepted I would kindly ask to provide an updated version of the leaflet.extras2 package.
Beste regards
Rudolf

from leaflet.extras2.

trafficonese avatar trafficonese commented on May 20, 2024

Hey, thank you very much for digging into this.
I'll just link the issue here (heigeo/leaflet.wms#72)

Did you try it out with accepting the response code 301?

from leaflet.extras2.

Rudolf-May avatar Rudolf-May commented on May 20, 2024

Hey, thank you very much for digging into this.
I'll just link the issue here (heigeo/leaflet.wms#72)

Did you try it out with accepting the response code 301?

No, that is beyond my abilities since I am not fit in writing javascript code, though I can read and grasp most of what the code is meant to produce...

from leaflet.extras2.

trafficonese avatar trafficonese commented on May 20, 2024

I uploaded a new branch, which accepts the request code 200 and 301.

You can install it with:
remotes::install_github("trafficonese/leaflet.extras2@wms_301")

Could you please check if that works?

from leaflet.extras2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.