You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When following this example and putting the DrawControl inside the Map, I cannot get the polygon to be drawn on the screen if the Map has an onClick prop. That will take priority of drawing on the screen. If I remove onClick, the polygon can be drawn.
Expected Behavior
To be able to have an onClick as well as a be able to draw a polygon. If the polygon drawing tool is selected, onClick should be ignore. How else can you respond to a maps click and have polygon draw functionality? They seem that they should be able to live in unison?
Description
When following this example and putting the
DrawControl
inside theMap
, I cannot get the polygon to be drawn on the screen if theMap
has anonClick
prop. That will take priority of drawing on the screen. If I removeonClick
, the polygon can be drawn.Expected Behavior
To be able to have an
onClick
as well as a be able to draw a polygon. If the polygon drawing tool is selected, onClick should be ignore. How else can you respond to a maps click and have polygon draw functionality? They seem that they should be able to live in unison?Steps to Reproduce
https://codesandbox.io/p/sandbox/laughing-mclaren-tc66sp
Environment
Logs
No response
The text was updated successfully, but these errors were encountered: