Leaflet CSS ==========
Last updated 7 years ago by cwmma .
Original npm · Tarball · package.json
$ cnpm install leaflet-css 
SYNC missed versions from official npm registry.

Leaflet CSS

small library to add the css for leaflet without having to bother including ugly conditional comments

to use, either include leaflet.css.js or leaflet.css.min.js scripts like a regular plugin and don't bother putting the css links in the head, or you can include leaflet.css.bundle.js or leaflet.css.bundle.min.js instead of leaflet.js, i.e. instead of :

<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.css" />
<!--[if lte IE 8]>
    <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.ie.css" />

<script src="http://cdn.leafletjs.com/leaflet-0.5.1/leaflet.js"></script>

just include

<script src="http://leaflet-extras.github.com/leaflet.css/dist/leaflet.css.bundle.min.js"></script>

if you want to call more css in the same way, like maybe for your own plugin, you can do

L.css(["string of css (optional)","string of css for internet explorer, (also optional)"]);

build with

npm install #install dependencies
cake build # if that gets you an error try this first
npm install -g coffee-script # you may need a sudo

The css from leaflet and licenced per that project the rest is MIT licenced demo includes leaflet.sprite

Current Tags

  • 0.1.0                                ...           latest (7 years ago)

1 Versions

  • 0.1.0                                ...           7 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
Dev Dependencies (6)

Copyright 2014 - 2016 © taobao.org |