Skip to content
Extend leaflet to allow controls to be placed at position top-center and bottom-center
JavaScript CSS
Branch: master
Clone or download
NielsHolt Using grunt-fcoo-grunt-plugin^2.0.0
Demo updated to use Leaflet 1.2.0
Latest commit 3c666d8 Sep 12, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo Using grunt-fcoo-grunt-plugin^2.0.0 Sep 12, 2017
dist Using grunt-fcoo-grunt-plugin^2.0.0 Sep 12, 2017
src Using grunt-fcoo-grunt-plugin^2.0.0 Sep 12, 2017
.browserslistrc Using grunt-fcoo-grunt-plugin^2.0.0 Sep 12, 2017
.eslintrc Using grunt-fcoo-grunt-plugin^2.0.0 Sep 12, 2017
.gitignore
.uglifyrc Using grunt-fcoo-grunt-plugin^2.0.0 Sep 12, 2017
LICENSE-MIT No message May 28, 2016
README.md Update README.md Sep 12, 2016
bower.json Using grunt-fcoo-grunt-plugin^2.0.0 Sep 12, 2017
gruntfile.js Using grunt-fcoo-grunt-plugin^2.0.0 Sep 12, 2017
package.json Using grunt-fcoo-grunt-plugin^2.0.0 Sep 12, 2017
yarn.lock Using grunt-fcoo-grunt-plugin^2.0.0 Sep 12, 2017

README.md

leaflet-control-topcenter

Description

Extend leaflet to allow controls to be placed position top-center and bottom-center

No support for IE8 (Using flex)

Installation

bower

bower install https://github.com/FCOO/leaflet-control-topcenter.git --save

Demo

http://FCOO.github.io/leaflet-control-topcenter/demo/

Usage

Create controls with with position: "topcenter" or position: "bottomcenter"

map.addControl(new L.Control.Zoom({ position: 'topcenter' })); //Adds a zoom-control at the top-center

Copyright and License

This plugin is licensed under the MIT license.

Copyright (c) 2016 FCOO

Contact information

Niels Holt

You can’t perform that action at this time.