[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))
Version 1.1.0-0 moves the files under cljsjs/leaflet
prefix,
so you might need to update CSS requires etc.
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 () {},
},