I have to use two map in one page , in react js .
first map is shown by clicking on a button, when it's closed i have to show second map ,but i have this error , how should i fixed "Uncaught Error: Map container is already initialized."
what should i do?
"next": "12"
"react": "^18.2.0",
"react-neshan-map-leaflet": "^1.2.1",
I have to use two map in one page , in react js .
first map is shown by clicking on a button, when it's closed i have to show second map ,but i have this error , how should i fixed "Uncaught Error: Map container is already initialized."
what should i do?
"next": "12"
"react": "^18.2.0",
"react-neshan-map-leaflet": "^1.2.1",