Coder Social home page Coder Social logo

leaflet-slider's People

Contributors

bluenote10 avatar eclipse1979 avatar smellman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

leaflet-slider's Issues

Slider gets displayed wrong in firefox

The Slider gets displayed sidewards in Firefox.
Chrome: Firefox:
slider_right slider_wrong
If you change {this.slider.setAttribute("orient", "vertical");} to {this.slider.setAttribute("orientation", "vertical");} in the Plugin Code,
it corrects the sliding direction of the thumb, but not of the range track.
slider_half_wrong

(solved) how to make slider immediately reflect change

As usual, I gave this a shot while creating this issue and found that it solved my problem! The syncSlider option.

syncSlider: true

I have programmed this slider to change opacity of some layers on my map. Before, the effect would only show after lifting the mouse button. That basically meant more clicks needed and sluggish-looking behaviour.
Now, with syncSlider: true the function gets executed as I'm moving the slider instead of waiting for me to lift the mouse button.
Full code in case someone also wants to use this slider plugin to control opacity:

slider = L.control.slider(function(value) {
		// I have two layers whose opacity I have to vary
		leftOverlay.setOpacity(value/100);
		rightOverlay.setOpacity(value/100);
	}, { // slider options
		//orientation:'vertical', 
		position: 'bottomright',
		size: '250px',
		min: 0, max: 100,
		value: 70,
		logo: 'O',
		collapsed: false,
		title: 'Set Opacity',
		syncSlider: true
	}
).addTo(map);

Expand on hover not working

Trying to use it on my project, the when I hover the 'S' icon, nothing happens. If I manually add leaflet-control-slider-expanded it works. Any idea why? Using current leaflet (0.7.3).

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.