Skip to content

Files

Latest commit

 

History

History

leaflet

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

cljsjs/leaflet

[cljsjs/leaflet "1.9.4-0"] ;; latest release

This jar comes with deps.cljs as used by the Foreign Libs feature of the ClojureScript compiler. After adding the above dependency to your project you can require the packaged library like so:

(ns application.core
  (:require cljsjs.leaflet))

News

Version 1.1.0-0 moves the files under cljsjs/leaflet prefix, so you might need to update CSS requires etc.

Notes

Note: This extern is a work in progress. You may need to add symbols as needed. For example:

(.setView (.map js/L "map") #js [lat lng] 10)

was throwing the following error:

Uncaught TypeError: L.map(...).Zc is not a function

The solution was to edit leaflet.ext.js and change this:

"map": function () {},

To this:

"map": {
  "setView": function () {},
},