Fork me on GitHub
#reagent
<
2018-11-17
>
heefoo10:11:15

Hi. I have a reagent component of the form [:> Map] where Map is from react-leaflet. How do i access the map component itself ?.

igrishaev10:11:00

for my question, the solution is

(def page-react
  (r/reactify-component page))


(goog.object/set
 page-react
 "navigationOptions"
 #js {:title "AAAA"})

valtteri10:11:38

Hi @heefoo what do you mean by ‘access the map component itself’? What do you intend to do with the component?

heefoo10:11:22

@valtteri change the size of the marker

heefoo10:11:55

on zoom ...

valtteri10:11:01

I haven’t used react-leaflet but with a quick check at the docs it looks like you can’t just tell the Map component to do that. You probably need to create custom Marker components, add them to the map and resize them manually when map is zoomed

valtteri10:11:07

This is pseudocode but I mean maybe you need something like this.

heefoo11:11:19

@valtteri thanks i will try that way

abdullahibra20:11:23

how can i destructing route "/users/:id" [id] how can i include full request too via compojure ?

abdullahibra20:11:54

[id :as requst] ?

abdullahibra20:11:04

[{:keys [id] :as request}] ?