leaflet

所属分类:GIS/地图编程
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2013-10-17 15:21:29
上 传 者sh-1993
说明:  在传单中以编程方式添加CSS,
(Add CSS programmaticly in Leaflet,)

文件列表:
Cakefile (748, 2013-01-18)
dist/ (0, 2013-01-18)
dist/leaflet.css.js (9717, 2013-01-18)
dist/leaflet.css.min.js (17656, 2013-01-18)
package.json (301, 2013-01-18)
src/ (0, 2013-01-18)
src/leaflet.css (9837, 2013-01-18)
src/leaflet.css.coffee (539, 2013-01-18)
src/leaflet.ie.css (1225, 2013-01-18)

Leaflet CSS ========== small library to add the css for leaflet without having to bother including ugly conditional comments to use instead of including the css files for leaflet in th head, include this after you include leaflet, then in your script (before you do any leaflet stuff, i.e. first thing) call L.css(); if you want to call more css in the same way, like maybe for your own plugin, you can do ```javascript var css = L.css(["string of css (optional)","string of css for internet explorer, (also optional)"]); //or if you want to add it after adding main css files var css = L.css(); css.addStyle(["string of css","string of css for internet explorer, (also optional)"]) // if you want to construct it without adding any css var css = L.css([]); ``` build with ```bash 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 ``` demo includes [leaflet.sprite](https://github.com/calvinmetcalf/leaflet.sprite)

近期下载者

相关文件


收藏者