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

  • Home
  • SEARCH
  • 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 596343
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:09:43+00:00 2026-05-13T16:09:43+00:00

i put this plug in into my website, how i do define a region

  • 0

i put this plug in into my website, how i do define a region and restrict visitors to can not going out of ?

I don’t have access http://code.google.com for political reasons. please help me in your answer and don’t Refers to that!

thank advance

  • 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-05-13T16:09:43+00:00Added an answer on May 13, 2026 at 4:09 pm

    The following example will limit the panning of the map to predefined bounds, if that is what you intend doing:

    // Bounds for North America
    var allowedBounds = new GLatLngBounds(new GLatLng(48.19, -127.52), 
                                          new GLatLng(28.72, -68.81));
    
    function checkBounds() { 
        if (allowedBounds.contains(map.getCenter())) {
            return;
        }
    
        var c = map.getCenter();
        var x = c.lng();
        var y = c.lat();
        var maxX = allowedBounds.getNorthEast().lng();
        var maxY = allowedBounds.getNorthEast().lat();
        var minX = allowedBounds.getSouthWest().lng();
        var minY = allowedBounds.getSouthWest().lat();
    
        if (x < minX) { x = minX; }
        if (x > maxX) { x = maxX; }
        if (y < minY) { y = minY; }
        if (y > maxY) { y = maxY; }
    
        map.setCenter(new GLatLng(y, x));
    }
    
    GEvent.addListener(map, "move", function() { checkBounds(); });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 299k
  • Answers 299k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer You should explicitly define the foreign key below the column… May 13, 2026 at 7:44 pm
  • Editorial Team
    Editorial Team added an answer Have a look at examples #3: http://php.net/manual/en/function.array-multisort.php You'll need to… May 13, 2026 at 7:44 pm
  • Editorial Team
    Editorial Team added an answer I use the program Livecycle to add interactice text in… May 13, 2026 at 7:44 pm

Related Questions

Good morning, Apologies for the newbie question. I'm just getting started with ASP.NET internationalization
When using the Visual Studio shortcut/snippets is it possible to specify the collection in
I'm having some trouble getting a jQuery plugin to work correctly in my MVC
I'm a bit newbieish when it comes to the deeper parts of OSX configuration
I've been trying to find a way to load my WCF service configuration (that

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.