2

I've been unable to find an example how to limit scrolling of android Google maps to defined coordinates or preferably not outside a ground overlay.

There are some examples of extending MapView and overriding the onScroll method, but the MapViewActivity which MapView needs, seems to be deprecated.

I am currently using GoogleMap class with SupportMapFragment, which seems not to support such a thing.

there is this question with an answer which is a bad hack and I rather not use it.

So is it possible?

Community
  • 1
  • 1
danizmax
  • 2,446
  • 2
  • 32
  • 41

1 Answers1

0

Not possible without bad hacks as of 3.1.36. You may want to post a feature request on gmaps-api-issues if nobody requested that already.

MaciejGórski
  • 22,187
  • 7
  • 70
  • 94