Loading ...
Sorry, an error occurred while loading the content.

Re: PTviewer help?

Expand Messages
  • Erik Krause
    ... Fulvio, could it be we both misunderstood Jan s request? He doesn t want to add a hotspot dynamically. He wants to define the hotspot in a string passed to
    Message 1 of 8 , Jul 3 10:10 AM
    • 0 Attachment
      Am 02.07.2010 22:06, schrieb Fulvio Senore:
      > It is a long time since I last worked at PTViewer, but I don't think
      > that it is possible to add a hotspot at runtime. Hotspots are defined as
      > parameters in the<applet> tag.

      Fulvio, could it be we both misunderstood Jan's request? He doesn't want
      to add a hotspot dynamically. He wants to define the hotspot in a string
      passed to newPano(). The question was, why this hotspot doesn't show
      when the new panorama is loaded. From the documentation it should work...

      --
      Erik Krause
      http://www.erik-krause.de
    • Erik Krause
      ... After some fiddling with firebug I found the reason: You simply are using the wrong hotspot syntax: The string should be ... {hotspot0= q x1500 y750 a1600
      Message 2 of 8 , Jul 3 10:22 AM
      • 0 Attachment
        Am 30.06.2010 11:53, schrieb Jan Martin:
        > Relevant code:
        > next ='{file='+streetview+'} {pan='+pan+'} {tilt='+tilt+'} {fov='+fov+'}
        > {name="hotspot1" value="q x1500 y750 a1600 b800
        > u$+javascript:update(\'pano/000045.jpg\')+ n$+pano/000045.jpg+"}';
        >
        > document.ptviewer.newPano(next);

        After some fiddling with firebug I found the reason: You simply are
        using the wrong hotspot syntax: The string should be
        ... {hotspot0="q x1500 y750 a1600 b800
        u$+javascript:update('pano/000015.jpg')+ n$+Click me+"}

        --
        Erik Krause
        http://www.erik-krause.de
      • Jan Martin
        Erik, thanks. It works. I could have sworn I tried that..... Jan ... -- http://www.DIY-streetview.org [Non-text portions of this message have been removed]
        Message 3 of 8 , Jul 3 6:43 PM
        • 0 Attachment
          Erik,

          thanks. It works.
          I could have sworn I tried that.....

          Jan

          On Sat, Jul 3, 2010 at 7:22 PM, Erik Krause <erik.krause@...> wrote:

          > Am 30.06.2010 11:53, schrieb Jan Martin:
          > > Relevant code:
          > > next ='{file='+streetview+'} {pan='+pan+'} {tilt='+tilt+'} {fov='+fov+'}
          > > {name="hotspot1" value="q x1500 y750 a1600 b800
          > > u$+javascript:update(\'pano/000045.jpg\')+ n$+pano/000045.jpg+"}';
          > >
          > > document.ptviewer.newPano(next);
          >
          > After some fiddling with firebug I found the reason: You simply are
          > using the wrong hotspot syntax: The string should be
          > ... {hotspot0="q x1500 y750 a1600 b800
          > u$+javascript:update('pano/000015.jpg')+ n$+Click me+"}
          >
          > --
          > Erik Krause
          > http://www.erik-krause.de
          >
          >
          > ------------------------------------
          >
          > --
          >
          >
          >
          >


          --
          http://www.DIY-streetview.org


          [Non-text portions of this message have been removed]
        Your message has been successfully submitted and would be delivered to recipients shortly.