sharenowTech / AnyMaps

Easily switch between Google, Baidu and OSM maps
181 stars 39 forks source link

disabling zoom gestures on AnyMap #15

Open prfarlow1 opened 7 years ago

prfarlow1 commented 7 years ago

I noticed that AnyMap's UiSettings only has 3 settings methods. Google's UiSettings has 10 settings, while Baidu's has 5. I need to disable zoom gestures on maps using setZoomGesturesEnabled(boolean), which is provided by both Baidu and Google. The AnyMaps interface does not have this method. How do I accomplish this?

Diolor commented 7 years ago

You may add the method in the UiSettings interface. Then implement it for Baidu + Google but throw an UnsupportedOperationException for Open street. We would be happy to merge your PR!