Skip to content

Files

Latest commit

 

History

History
 
 

react-leaflet

cljsjs/react-leaflet

[cljsjs/react-leaflet "3.1.0-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.react-leaflet))

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

(.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 () {},
},