Code Monkey home page Code Monkey logo

Comments (6)

Turbo87 avatar Turbo87 commented on August 24, 2024

what do you mean by "doesn't work"? what browser/OS are you using and why do you think that it doesn't work?

from leaflet-sidebar.

UmpPCPL avatar UmpPCPL commented on August 24, 2024

I have tried FireFox and Chrome.
My understanding was that clicking X in upper right corner will close sidepanel.

Try your own example.
http://turbo87.github.io/leaflet-sidebar/examples/two-sidebars.html.

from leaflet-sidebar.

Turbo87 avatar Turbo87 commented on August 24, 2024

ah, I see what you mean. it seems that it is not working properly in this particular example. if you check the main example at http://turbo87.github.io/leaflet-sidebar/examples/ however it works well for me.

from leaflet-sidebar.

UmpPCPL avatar UmpPCPL commented on August 24, 2024

https://github.com/Turbo87/leaflet-sidebar/blob/master/examples/index.html
Look at the end of file. There is click handler for whole map.
You can click anywhere on the map and close sidepanel.
(somehow it works for the X button too)

map.on('click', function () {
sidebar.hide();
}

from leaflet-sidebar.

Turbo87 avatar Turbo87 commented on August 24, 2024

right, thanks for analyzing that. I guess the solution is preventing the event from bubbling up to the map and fixing the event handler to hide the sidebar.

from leaflet-sidebar.

Turbo87 avatar Turbo87 commented on August 24, 2024

@UmpPCPL should be fixed by 6687349

from leaflet-sidebar.

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.