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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:31:20+00:00 2026-06-01T14:31:20+00:00

In google maps API v3, I’m creating my own custom map types by calling

  • 0

In google maps API v3, I’m creating my own custom map types by calling

map.mapTypes.set('my map', new google.maps.ImageMapType({
    getTileUrl: ...
    minZoom: 12,
    maxZoom: 20,
    ...
}));

The layers have of course limited zoom range (12-20 in this example). Now the problem is the default behaviour of google maps. When I see map in scale 7 for example and switch to my map, the map automatically zooms in to zoom 12.

Instead, when I am in zoom 7 and switch to my map, I would like to see tiles with text “No map data in this scale, please zoom in”.

  • Is there some standard option / way how to do this within API v3?
  • Is there some commonly used solution to this problem?
  • If not, what would be the easiest way to do it?

Thanks in 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-06-01T14:31:22+00:00Added an answer on June 1, 2026 at 2:31 pm

    Avoid minZoom and maxZoom options and try something like this:

    map.mapTypes.set('my map', new google.maps.ImageMapType({
        getTileUrl: function( position, zoom ){
            if( zoom >= 12 && zoom <= 20 ){
                return "http://example.com/tileservice?x="+position.x+"&y="+position.y+"&zoom="+zoom;
            }else{
                return "http://example.com/no_map_data_in_this_scale_please_zoom_in.png";
            }
        },
        ...
    }));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Google Maps (API v3) supports custom controls . E.g. var controlDiv = document.createElement('DIV'); map.controls[google.maps.ControlPosition.TOP_RIGHT].push(controlDiv);
I'm using the Google Maps API v2. I add markers to the map and
I'm using the Google Maps API to build a map full of markers, but
Google Maps API v2 vs Google Maps API v3? why Google create a new
In Google Maps API v2, I was using map.clearOverlays() to remove the marker and
I am using the Google Maps API. I get the Google Map by: $map
I use the Google Maps API (v.3) to show a map with a couple
I use google maps API to display markers on a map. Each marker points
In Google Maps API v2 we can set to marker an option bouncy:true .
I'm using google maps API 3 and a custom overlay (OverlayView) I have this

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.