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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:51:49+00:00 2026-05-17T16:51:49+00:00

I am creating a google map with some specific requirements. The map is lets

  • 0

I am creating a google map with some specific requirements.
The map is lets say 800×600 pixels wide.

I need all the markers to show in an area of 400x600px on the left hand side of the map.
The other half is covered with navigation panels (but the map must be visible in the margins behind the panels).

I’ve been able to set the zoom level according to all the markers using LatLngBounds and fitBounds, but that still fills the entire area.

How do I create a sub bounding area inside the viewport to contain all the markers and adjust zoom accordingly. I show only markers for a specific city.

This is what I need to achieve visually:

+————————————————+
|..+—–+..+——-+…..+———————+|
|..|.nav.|….|..nav..|……|…marker area……||
|..+—–+…+——+…..+———————+|
+————————————————+

The outer block represents the google map, and the spaces between the sub blocks show the map panes. So I need a sub-viewport inside the main viewport somehow.

Any ideas?
(suggestions to enhance the question are welcome as well, use comments for that pls.)

  • 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-17T16:51:49+00:00Added an answer on May 17, 2026 at 4:51 pm

    Interesting problem.

    My suggestion:

    1. Start with your bounds
    2. Using the Projection, find out what coordinates would extend the bounds to the left by 400px.
    3. Call fitBounds with these new coordinates.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a custom Google map that plots multiple markers. View the link as
Creating a google map with store locations within 50 miles of user entered address.
I'm creating an asp.net page that uses the google map api. The page loads
I'm creating a map using Google Fusion Tables. It has several layers that are
I am creating a map using the new(ish) v3 of the Google Maps API
In google maps API v3, I'm creating my own custom map types by calling
I'm creating some reports in Google Analytics. I am trying to write a RegEx
I have a list of people that I need to map. Some of them
I'm creating a Google map mashup and am using SQL 2008. I will have
How would I go about creating a Google map that allows the user to

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.