🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

leaflet-css

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leaflet-css

Leaflet CSS ==========

latest
npmnpm
Version
0.1.0
Version published
Weekly downloads
577
4.72%
Maintainers
1
Weekly downloads
 
Created
Source

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" />
<![endif]-->

<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

FAQs

Package last updated on 23 Oct 2013

Did you know?

Socket

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.

Install

Related posts