If you use useMap inside <RMap /> and you're using TypeScript it is better not to specify an id for your useMap hook because
you will not have to handle the null case. But keep in mind that this is just for TypeScript because map 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 useMap.
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.