If you are using my wrapper, you can get the reference to map via useContext.
importReact,{useContext}from'react'import{GoogleMapContext}from'@googlemap-react/core'constMyComponent=()=>{const[state,dispatch]=useContext(GoogleMapContext)// You can now access the map object and other objects via `state`.// Remember to check existence, since they might be undefined.state.map&&state.map.setZoom(12)returnnull}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
If you are using my wrapper, you can get the reference to
map
viauseContext
.