react-bingmaps icon indicating copy to clipboard operation
react-bingmaps copied to clipboard

Changing disableScrollWheelZoom map option doesn't affect the map

Open devinrhode2 opened this issue 5 years ago • 2 comments

I may be missing something. After a bing map renders, can I pass in different mapOptions and expect those to affect the map? For some reason changing disableScrollWheelZoom is having no effect on the map.

I was able to demo this behavior in this code sandbox few weeks ago but my sandbox broke somehow between now and then.. (https://codesandbox.io/s/react-bingmaps-toggle-scrollzoomenabled-dldbp?file=/src/App.js:335-357)

devinrhode2 avatar Apr 14 '20 18:04 devinrhode2

i think you need this to disable the zoom: showZoomButtons

jedmonsanto avatar Jul 18 '20 07:07 jedmonsanto

I'm no longer on the team/project using react bingmaps anymore, but maybe flipping that extra setting is key. If you can't zoom with scrollwheel, as a user, you need the zoom buttons to zoom instead right? I believe we had the zoom buttons enabled.

On Sat, Jul 18, 2020, 2:50 AM Jed Monsanto [email protected] wrote:

i think you need this to disable the zoom: showZoomButtons

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/iniamudhan/react-bingmaps/issues/38#issuecomment-660445484, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEDZKAOAOAVFVG2PECJZYDR4FH6DANCNFSM4MH7CF7A .

devinrhode2 avatar Jul 18 '20 14:07 devinrhode2