kamal_tech_view
kamal_tech_view

Reputation: 4255

set the viewing specification of "google map" to a particular area only

Is these is possible to set the google map viewing of a particular area only and denied other's.

Real scenerio

Actually I like to set the google map of a park, able to view any part of the park but not outside the park map.

Upvotes: 2

Views: 250

Answers (1)

elijah
elijah

Reputation: 2924

It is possible, but it's not simple. You would need to create a transparent View on top of the MapView, and use that to receive touch events. These you would use to pan/zoom the map around indirectly, and thereby only allow the panning to occur within the limits that you want.

Upvotes: 2

Related Questions