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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:01:39+00:00 2026-05-30T20:01:39+00:00

I have a Google v3 Map with a UI element that overhangs the top

  • 0

I have a Google v3 Map with a UI element that overhangs the top of it like so…

Panel overhangs top of map by about 30px

And I have an info window attached to multiple markers. The problem I have is that when the infowindow opens and auto-pans to be visible within the map (behaviour I want), it obviously takes no account of the element overhang…

infowindow partially obscured, user has to manually pan to get at close box

…so the user has to manually pan to see all the info clearly or get at the close box.

I’ve looked to see if there is a way I can get the offsetTop of the infowindow from its parent map, so I can add an extra panTo nudge when necessary, but I’m stumped.

Attempts such as…

google.maps.event.addListener(marker, 'click', function() {
  infowindow.setContent(this.html);
  infowindow.open(map, marker);

  var infoTop = infowindow.offsetTop;
  console.log(infoTop);
});

…just give me undefined.

What would be great is to be able to set a clearance property on the infowindow, as is possible with the infoBoxClearance property of the InfoBox utility. But I don’t want to use InfoBox because there are stylistic aspects of the standard infowindow I prefer.

And I would prefer not to have the map pan more than is necessary by using disableAutoPan and calculating an optimal panTo for each marker.

Any suggestions?

  • 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-30T20:01:41+00:00Added an answer on May 30, 2026 at 8:01 pm

    I haven’t tried this in Version 3, but in Version 2 the standard solution is to create a custom control on the map. The [v2] infoWindow avoids all controls, including custom controls. Your custom control could simply be an empty space covered by your external UI.

    http://code.google.com/apis/maps/documentation/javascript/controls.html#CustomControls

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

Sidebar

Related Questions

I have a Google Map on our site that has a list of markers
I have some google map markers that sit on a map. They are controlled
I have a Google Map that suddenly stopped working for no apparent reason (I
I have a GWT web-app with a nearly full page Google map window. Inside
I have a problem with a Javascript request to the Google Map Api Web
I have about 5000 markers I need to render on Google Map. I'm currently
I would like to have a google map on my page in its own
I have a google map where user places markers at various locations. I show
I have a scenario where I am using Google Map JavaScript API to process
I have an App which launches the google Map App. The code is: UIApplication

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.