I’d like to create an application which only displays a single country. Upon clicking a specific place in a country like the Philippines, it has to display certain trivia. Asking if anyone of you already did something like this, or any idea/suggestion how to accomplish this? Thank you in advance!
I’d like to create an application which only displays a single country. Upon clicking
Share
AFAIK, Google Maps do not support any direct way to display a country or any other geographical area.
The usual solution to this is to restrict the map viewport to some latlng range. An example solution would be to check the center of the map after drag/zoom. If the center gets outside the bounds then scroll the map back to the edge of the bounds.