1

I want to make a mobile app with HTML5 and want to show you a map, but the map should only be one state, for example, only show the state of Texas and nothing else, they could see other states or regions.

I did not find something useful, all I've found are tutorials to center the map in a region but still can't move through other states and countries.

Thank you very much for your help.

Ghoul Fool
  • 6,249
  • 10
  • 67
  • 125
Rodrigo Moreno
  • 629
  • 9
  • 24
  • One thing you could do is use mapsengine.google.com to draw polygons over all areas you don't want visible. Then set the polygon transparency to 0 and the color to whatever background-color you'd like for your map. – brouxhaha Jan 24 '14 at 20:57
  • possible duplicate of [Google maps API v3 - Gray out or remove states?](http://stackoverflow.com/questions/12591937/google-maps-api-v3-gray-out-or-remove-states) – geocodezip Jan 24 '14 at 21:03

1 Answers1

0

I would have thought that greying out areas using polygons etc is over complicating matters. I would simply limit the map bounds to the coordinates of the state you are interested in. An appropriate question is available here.

Community
  • 1
  • 1
ChrisSwires
  • 2,713
  • 1
  • 15
  • 28