Giter Site home page Giter Site logo

Comments (4)

audelorAd avatar audelorAd commented on June 15, 2024 2

Hi,

I had this problem too with background_selector script
To solved it I add the code below at line 29 of the JS file.
lizMap.mainLizmap.state.baseLayers.selectedBaseLayerName = nextbl_val;
I'm not really sur that the right thing to do, but it seems to works well.

You'll also need to rename your png file to display your background preview, for example :
osm.png -> openStreetMap.png
ignphoto.png -> Orthophoto IGN.png

Hope this help.

from lizmap-javascript-scripts.

gioman avatar gioman commented on June 15, 2024

@npltr62 the logic for baselayers has changed in LMWC 3.7, so probably that script should be updated. This ticket has to be moved to https://github.com/3liz/lizmap-javascript-scripts/issues I guess.

from lizmap-javascript-scripts.

npltr62 avatar npltr62 commented on June 15, 2024

I had this problem too with background_selector script To solved it I add the code below at line 29 of the JS file. lizMap.mainLizmap.state.baseLayers.selectedBaseLayerName = nextbl_val; I'm not really sur that the right thing to do, but it seems to works well.

thanks this helped me a lot !

from lizmap-javascript-scripts.

Gustry avatar Gustry commented on June 15, 2024

Thanks for debugging.

Can you make a PR on GitHub ? You can just click the "pen" on GitHub, it will create the PR and commit automatically.

from lizmap-javascript-scripts.

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.