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.

  1. Center point: For East: London New google.maps.LatLng (51.8100844, -0.02911359999995966)

  2. Late: East: 51.8100844

  3. LNG: For East: -0.02911359999995966
  4. Distance (miles): East: 10 miles

    The output is similar Enter image details here

    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

    Enter image details here

    Finally the zoom level can not be reset, though the distance has changed.

    create a loud long-bound polygon - path fitbones -am map .

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -