Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9014017
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T03:24:33+00:00 2026-06-16T03:24:33+00:00

The Google Maps terrain view by default has unlimited panning of the map tile.

  • 0

The Google Maps terrain view by default has unlimited panning of the map tile. You can use LatLngBounds() to limit this, but what are the maximum and minimum coordinates I should use to set the viewport as just the earth and not outside the map region?

Coordinates for North America:

var strictBounds = new google.maps.LatLngBounds(
    new google.maps.LatLng(28.70, -127.50), 
    new google.maps.LatLng(48.85, -55.90)
);

I’ve tried (+90, -180)(-90,180) to no luck.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T03:24:34+00:00Added an answer on June 16, 2026 at 3:24 am

    The links provided by @Marcelo & @Doc are good for understanding the derivation of the Lat Lng:

    • http://www.cienciaviva.pt/latlong/anterior/gps.asp?accao=changelang&lang=en
    • https://groups.google.com/forum/?hl=en&fromgroups=#!msg/google-maps-api/oJkyualxzyY/pNv1SE7qpBoJ
    • https://en.wikipedia.org/wiki/Mercator_projection#Mathematics_of_the_Mercator_projection

    But if you just want an answer for the maximum bounds for Google Maps:

    Latitude: -85 to +85 (actually -85.05115 for some reason)

    Longitude: -180 to +180

    Try it for yourself on the Google Maps:

    • https://maps.google.com/?q=85,180
    • https://maps.google.com/?q=-85.05115,180

    (You may need to Zoom Out. See how the pin is at the “edge” of the world – these are the limits)

    So in your code Try:

    var strictBounds = new google.maps.LatLngBounds(
        new google.maps.LatLng(85, -180),           // top left corner of map
        new google.maps.LatLng(-85, 180)            // bottom right corner
    );
    

    Please edit this wiki (or update your question) once you have the answer. Thanks

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When setting the google map type: map.setMapTypeId(google.maps.MapTypeId.TERRAIN); Can I replace TERRAIN by a js
I am using Google Maps V3 API to display my map. Problem: How can
Google Maps itself can sort of Highlight areas, when you are searching for example
Since Google Maps for Flash is deprecated ( see this ), what is the
With google maps api (utlizing there new Places Library)Im trying to: Display a map
In google maps API v3, I'm creating my own custom map types by calling
Google Maps seems to be able to do this quite well, presumably leveraging my
Google Maps (API v3) supports custom controls . E.g. var controlDiv = document.createElement('DIV'); map.controls[google.maps.ControlPosition.TOP_RIGHT].push(controlDiv);
I need help with Google Maps Polyline I just downloaded this code ( just
I've successfully added OSM as a new base map type to my Google Maps

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.