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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:54:41+00:00 2026-06-15T21:54:41+00:00

Im using Google route planner on my website with directions panel on the side.

  • 0

Im using Google route planner on my website with directions panel on the side. When you click on certain part of a jurney it gets zoomed in on the map but its not centered. Is it possible to center it in the midle of the map?

  • 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-15T21:54:43+00:00Added an answer on June 15, 2026 at 9:54 pm

    There is no implemented option to control anything when you click on the panel.

    But what you can do: When you click on the panel, the infoWindow opens.
    You may create your own infoWindow-object and pass it as infoWindow-option to the directionsRenderer.

    Then you’ll be able to control the infoWindow. Observe the domready-event of the infoWindow(it will fire before the infoWindow opens), and set the center of the map to the value returned by the getPosition()-method of the infoWindow.

    // Show directions
    if(!Demo.iw){
      Demo.iw=new google.maps.InfoWindow();
      google.maps.event
        .addListener(Demo.iw,'domready',
                     function(){Demo.map.setCenter(this.getPosition());});
    }
    Demo.dirRenderer.setOptions({
                        map         : Demo.map,
                        panel       : Demo.dirContainer,
                        infoWindow  : Demo.iw,
                        directions  : dirResult
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using google directions in order to get a route with waypoints. I have
Hello I'm using built in Google Map to show route to user. When I
I'm working on a profile-website which shows the location of people using google maps.
When I was using TRANSIT as my travel mode in Google Map api V3,
I am using the Directions Service of Google Maps V3 API, and I want
I'm using google overlays to draw my walking route in real time, I have
I am trying to calculate the distance between two map point using Google Map
When i am using below url for drawing route on map on android: StringBuilder
I am working on a website using Google maps apiv3. I have a button
I am using the Google Directions iOS API. I am getting the data using

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.