Git Product home page Git Product logo

Comments (5)

andreaordonselli avatar andreaordonselli commented on May 28, 2024

Can you recommend a change to qgis2web? or is your issue aimed at providing advice for future users?

from qgis2web.

barryrowlingson avatar barryrowlingson commented on May 28, 2024

First it was a report so anyone else getting the same problem might find the reason, and to inform the devs about it. Secondly, to trigger discussion of how (if its worth it) to fix it. It might just be something worth putting as a note in the documentation, that QGIS and the user's browser must be able to access the folder where the map is written (default /tmp) and this might be problematic if either are running in some sort of containerised or sandboxed environment (snap, docker,...).

from qgis2web.

andreaordonselli avatar andreaordonselli commented on May 28, 2024

I will consider notifying the user before exporting, perhaps in a note next to the folder choice or in a "?" icon. to click. Thank you.

from qgis2web.

barryrowlingson avatar barryrowlingson commented on May 28, 2024

An alternative (and this is a much bigger enhancement) might be for qgis2web to launch a small asynchronous web server running on high port (eg 8888), and for the map outputs to be written to be served by that, and then launching the browser at http://localhost:8888/qgis2web/map1 - this should work as long as the browser is on the same host, but it does mean complexity at the qgis2web end managing the server. But if you want to make work for yourself... :)

from qgis2web.

tomchadwin avatar tomchadwin commented on May 28, 2024

This approach would have other wide-ranging benefits. The current preview or export running only as browsing a local file leads to security issues.

from qgis2web.

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.