
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
leaflet-control-bar
Advanced tools
A simple leaflet control bar plugin. that allows custom sizes and resizable bars
Simple navigation bar for excellent javascript mapping library Leaflet. with the added functionality of resizing, allowing the user to change the height of the control bar. some development sponsored by vgeo.ca we started endpoint.ca
Compatible with Leaflet 0.6.0 or newer Now supports pointer events for a unified drag experience
You can install with npm
npm i leaflet-control-bar
or just download the source files from src and add them to your project
then you can include it with something like this
<link rel="stylesheet" type="text/css" href="node_modules/leaflet-control-bar/src/L.Control.Bar.css">
<script type="text/javascript" src="node_modules/leaflet-control-bar/src/L.Control.Bar.js"></script>
Create an element
<div id="bar"></div>
Create a new L.Control.Bar object and append to the map
var controlBar = L.control.bar('bar',{
position:'top',
visible:true
});
map.addControl(controlBar);
position:
visibility:
resizable:
height:
handleHeight:
handleHTML:
usePointer:
// Show control bar
controlBar.show();
// Hide control bar
controlBar.hide();
// Toggle control bar visibility
controlBar.toggle();
// Resizes the bar to 'height' pixels
controlBar.resize(height);
// Check control bar visibility
var visible = controlBar.isVisible();
// Set content to control bar
controlBar.setContent('<p>This is sample content :)</p>');
controlBar.on('shown', function () {
console.log('Hello control bar!');
});
Available events:
//example
bar.on('resizeEnd', (e)=> {
window.dispatchEvent(new Event('resize'));
});
leaflet-control-bar is free software, and may be redistributed under the MIT-LICENSE.
A fork of the leaflet-control-bar plugin. Inspired by leaflet-sidebar plugin.
FAQs
A simple leaflet control bar plugin. that allows custom sizes and resizable bars
We found that leaflet-control-bar demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.