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 332977
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:55:06+00:00 2026-05-12T09:55:06+00:00

I have two maps on a page, one is a map of the world,

  • 0

I have two maps on a page, one is a map of the world, and the other is a closeup of the current place they picked on the map of the world. I would like to set different zoom min/max levels for each map but:

G_NORMAL_MAP.getMinimumResolution = function(){return 11};

Seems to set the same min/max for both maps, I can’t set them to different levels.

  • 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-12T09:55:06+00:00Added an answer on May 12, 2026 at 9:55 am

    I think the problem is probably elsewhere in your code – I’m not sure exactly how you’re using that function.

    Here is a method that will work. You can re-write it to have less duplication.

    map1 = new GMap2(document.getElementById("map1"));
    map1.addControl(new GLargeMapControl3D());
    map1.addControl(new GMenuMapTypeControl());
    
    var mt = map1.getMapTypes();
    // Overwrite the getMinimumResolution() and getMaximumResolution() methods
    for (var i=0; i<mt.length; i++) {
        mt[i].getMinimumResolution = function() {return 7;}
        mt[i].getMaximumResolution = function() {return 11;}
    }
    map1.setCenter(new GLatLng(40,-100), 8);    
    
    
    map2 = new GMap2(document.getElementById("map2"));
    map2.addControl(new GLargeMapControl3D());
    map2.addControl(new GMenuMapTypeControl());
    
    var mt = map2.getMapTypes();
    // Overwrite the getMinimumResolution() and getMaximumResolution() methods
    for (var i=0; i<mt.length; i++) {
        mt[i].getMinimumResolution = function() {return 2;}
        mt[i].getMaximumResolution = function() {return 6;}
    }
    
    map2.setCenter(new GLatLng(40,-100), 4);    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to have a mapping which maps two string into one string.
I have two maps of type Map<Long, Integer>, one named oldValues representing the old
I have two copies of same image map on page. They have different ID's,
I'm having this problem: I have two Google maps in one page, showing just
We have code with two complementary Maps like this: private final Map<Integer, String> idToName
Let's say I have two maps: typedef int Id; std::map<Id, std::string> idToStringMap; std::map<Id, double>
So I'm trying to combine two Google Maps API tutorials into one map. This
I have two maps: Map<String, Object> map1; Map<String, Object> map2; I need to receive
Basically, I have to load two google maps, one dependent on the another. In
I have two Maps that contain the same type of Objects: Map<String, TaskJSO> a

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.