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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:10:53+00:00 2026-05-26T17:10:53+00:00

Hi this is my site in which when I enter a location I see

  • 0

Hi this is my site in which when I enter a location I see the opposite side of the world in the second map. I want to synchronize the two maps such that when the user moves the map1, map2 automatically moves to follow. I tried a lot but its not working there. Here is the link to my page Please anyone who can tell me what should I do? You can view the source code also.

  • 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-26T17:10:53+00:00Added an answer on May 26, 2026 at 5:10 pm

    You should use the center_changed event and the getCenter/setCenter methods.

    Maybe something like this:

    google.maps.event.addListener(map1,'center_changed', function () {
        var newCenter = map1.getCenter();
        var opppositePosition = getOppositePosition(newCenter);
        map2.setCenter(oppositePosition);
    });
    
    function getOppositePosition(originalPosition) {
        return new google.maps.LatLng(newCenter.lat() * -1, newCenter.lng() * -1);
    }
    

    I don’t know if my getOppositePosition function returns the right position – is the opposite position on the earth the place with opposite lat and lng like this? If not, try implementing the function in a different way.

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

Sidebar

Related Questions

I'm developing a site which has urls like this: site.com/james site.com/james/photos Schema for this
I am trying to implement a generic repository pattern. I found this site which
https://web.archive.org/web/20170227190422/http://hilbert-space.de/?p=22 On this site which is quite dated it shows that hand written asm
I have nav buttons on this site: http://www.dermatologypartners.com which have rounded corners, a gradient,
i am working on a recipe site (which is almost finished except this problem)
This is my first time doing VB :-) I've inherited a web site, which
This is the script I have written for gzipping content on my site, which
Scenario Having already read a post on this on the same site, which didn't
Another jquery calculation question. I've this, which is sample code from the plugin site
I am building a site which uses jQUery validation plugin and want things validated

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.