[cljsjs/leaflet-gesture-handling "1.1.8-1"] ;; 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-gesture-handling))
Externs are generated with https://jmmk.github.io/javascript-externs-generator/
- Loaded https://unpkg.com/leaflet@1.3.4/dist/leaflet-src.js
- Loaded https://unpkg.com/leaflet-gesture-handling@1.1.8/dist/
- Entered
leafletGestureHandling
as externed object - Included generated extern in
resources/cljsjs/common/leaflet-gesture-handling.ext.js
(ns example.map
(:require [leaflet :as leaflet]
[react-leaflet :as react-leafet]
[cljsjs.leaflet-gesture-handling]
[reagent.core :as r]))
(def Map (r/adapt-react-class react-leaflet/Map))
(defn example-map []
[map/Map
{;; leaflet options
:center #js [60.0 20.0]
:max-zoom 15
:min-zoom 10
;; enable gesture handling
:gesture-handling true}])