[SOLVED] How to Pannellum hot spots click show ??

Answered
0
0

How to Pannellum hot spots click show new picture Like Google street view

thanks.

Preecha.

  • You must to post comments
Best Answer
0
0

See https://github.com/iceteagroup/wisej-examples/tree/2.0/PannellumExample

Use the Options.hotSpots array:

 this.pannellum1.Options = new
 {
 type = "equirectangular",
 autoLoad = true,
 autoRotate = -2,
 panorama = "https://pannellum.org/images/bma-1.jpg",

 hotSpots = new object[] {
 new {
 pitch= 14.1,
 yaw= 1.5,
 type= "info",
 text= "Baltimore Museum of Art",
 url = "https://artbma.org/"

 },
 new {
 pitch= -9.4,
 yaw= 222.6,
 type= "info",
 text= "Art Museum Drive"
 },
 new {
 pitch= -0.9,
 yaw= 144.4,
 type= "info",
 text= "North Charles Street"
 }
 }
 };

Detect the click:

private void Pannellum1_WidgetEvent(object sender, WidgetEventArgs e)
{
  if (e.Type == "hotspot")
     AlertBox.Show(e.Data.text);
}

 

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.