I'm missing something ... I'd like to use leafletjs in clojurescript.
So, I added `[cljsjs/leaflet "0.7.3-0"]` as a dependency to project.clj.
Then, I use the leafletjs inside cljs like so:
(.setView (.map js/L "map") #js [lat lng] 10)
That works fine in without any optimizations. But when I compile in advanced,
it throws `Uncaught TypeError: L.map(...).Zc is not a function`
So, I thought maybe i need to require it? So I tried adding
(:require cljsjs.leaflet)
... which seems to compile ok. But I still see
Uncaught TypeError: L.map(...).Zc is not a function
Any ideas?
Thanks,
Dave
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.