Disabling interaction with panorama (javascript)

  • Hi Guys,

    Excuse the noob question, but I'd really appreciate some help with the following:

    I'm trying to build something that allows a user to mark his own polygonal hotspots in a panorama (using javascript). You would click on a point and start dragging to create a rectangle.

    However, when you click and drag on the panorama you're obviously going to start panning around. Is there a way, with javascript, to disable all interactions with the panorama (and then enable it again when the user is done)? I'd include a button that would switch interaction on and off.

    I could not find a reference to a property of the pano object that I could just set. The only thing I'm considering trying is creating a layer that overlays the panorama and captures the events, while translating mouse coordinates to sphere, but I'm hoping this is overkill and you guys know of something better.

    Thank you.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!