Answer the question
In order to leave comments, you need to log in
How to get Map object, react/leaflet?
Good afternoon! Please tell me what are the options to get the map object if the component is made through a decorator?
I'm using https://www.npmjs.com/package/react-leaflet-universal to get everything working in server side rendering. This plugin uses a decorator and it's not so easy to get the object through the constructor.
If you write in componentDidMount window.L.Map
then it gives out the function itself.
Or maybe there are some other options to get the Map object from this plugin.
I will be grateful for your help!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question