Hook to get mapManager instance inside or outside RMap.
This hook is used a lot internally to control the map instance. You probably
won't need to use it.
Usage inside RMap
If you use useMapManager inside <RMap /> and you're using TypeScript it is better not to specify an id for your useMapManager hook because
you will not have to handle the null case. But keep in mind that this is just for TypeScript because useMapManager is
always available when you are in <RMap />.
Usage outside RMap
If you want to access your map instance outside of RMap you must wrap your application in
a <RMapContextProvider /> component. Moreover you must give an id to <RMap /> and
provide this same id to useMapManager.
This might seem useless to provide an id if your application contains only one map instance but this precaution help TypeScript to return the correct type.