Skip to content

Leaflet.js plugin which overrides default zoom control buttons with Twitter Bootstrap styled ones.

Notifications You must be signed in to change notification settings

mad-gooze/Leaflet.BootstrapZoom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leaflet.js plugin which overrides default zoom control buttons with Twitter Bootstrap styled ones.

This plugin adds a drop-in Twitter Bootstrap 3 styling for Leaflet.js zoom control buttons. Tested with Leaflet v1.0.0-beta.2 and v1.0.0-rc.3

Demo

Usage & Installation

  1. Include leaflet-bootstrap-zoom.min.js after Leaflet and Bootstrap:

    <script src='leaflet-bootstrap-zoom.min.js'></script>

    You can use hosted version from unpkg.com:

    <script src='//unpkg.com/leaflet-bootstrap-zoom/bin/leaflet-bootstrap-zoom.min.js'></script>
  2. Bootstrap-styled controls are added automatically.

NPM

You can also install from npm:

npm install leaflet-bootstrap-zoom --save

About

Leaflet.js plugin which overrides default zoom control buttons with Twitter Bootstrap styled ones.

Resources

Stars

Watchers

Forks

Packages

No packages published