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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:08:34+00:00 2026-05-31T17:08:34+00:00

Hi I didn’t get an answer before so second try… I want to control

  • 0

Hi I didn’t get an answer before so second try…

I want to control the POV (heading and pitch ) of multiple street view panoramas so when one panorama is interactively moved up down left right the other panorama moves with it

I can get this to work where interaction with panorama moves panorama2 another using this javascript:

google.maps.event.addListener(panorama, 'pov_changed', function() {
panorama2.setPov({ heading: panorama.getPov().heading + $headingoffset, pitch: panorama.getPov().pitch, zoom: panorama.getPov().zoom });
});

when I add the same code to control panorama via interaction with panorma2 both panoramas fail to be interactive so I assume the code causes a loop

google.maps.event.addListener(panorama2, 'pov_changed', function() {
panorama.setPov({ heading: panorama2.getPov().heading - $headingoffset, pitch: panorama2.getPov().pitch, zoom: panorama2.getPov().zoom });
});

\The $headingoffset value is the degree of difference between to two panoramas
do I have to turn the listener off and on again for the other panorama while I change the POV – if so how

Or can this be done via a DIV mouse event instead

  • 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-31T17:08:36+00:00Added an answer on May 31, 2026 at 5:08 pm

    Let’s assume that the mouse must be over the panorama to change the POV, so you may:

    create a variable.

    When the mouse is over the div , assign the div to the variable.
    When pov_changed fires, you now may determine if the pov_changed is a result of a user-action(when the variable is set to the div related to the panorama) or not, and do nothing when not.

    Demo: http://jsfiddle.net/doktormolle/Y9947/

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

Sidebar

Related Questions

I didn't get the answer to this anywhere. What is the runtime complexity of
I didn't want to ask this as an 'answer' to A Question Someone Beat
I didn't use Prototype.js before, when I use jquery, I can get an element
I didn't get the result I want from the following code: Private Sub tblView_SelectionChanged(ByVal
I didn't get any overlay change when my teammates make changes or add a
I didn't manage to find any functionalities for minimizing/maximizing programatically. I want to minimize
I didn't want to go through all the event unsubscription memory leak posts to
I didn't see a clear answer from the same question How can I figure
didn't find an answer to this. I like KeyedCollection, because it keeps the insertion
I didn't want to us a plugin for simple email validations so i tried

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.