javascript - Dynamic zoom level set so whole polygon can be visible in map area -
I have inputs to get a polygon with different points on Google Map.
-
Center point: For East: London New google.maps.LatLng (51.8100844, -0.02911359999995966)
-
Late: East: 51.8100844
- LNG: For East: -0.02911359999995966
-
Distance (miles): East: 10 miles
The output is similar
Dynamically zoom out / map so that the entire polygon appears within the map area.
If distance becomes high then it will be shown this way. Let me assume that I have entered 100 miles
Finally the zoom level can not be reset, though the distance has changed.
create a
loud long-bound polygon -
path fitbones -am
map .
Comments
Post a Comment