为 marzipano paranoma 添加可拖动标记

问题描述

我在我的 angular 应用程序中集成了 marzipano,我在其中创建了特定位置的游览,同时添加游览,我想在 paranoma 图像中标记任何地点,为此我需要可拖动标记用户可以从中将标记移动到 paranoma 视图在杏仁糖。

    var viewer = new Marzipano.Viewer(document.getElementById('pano'));

    var source = Marzipano.ImageUrlSource.fromString(
        "../../../../assets/images/DJI_0355-Panorama1_V2.jpg"
      
    );

    // Create geometry.
    var geometry = new Marzipano.EquirectGeometry([{ width: 4000 }]);

    // Create view.
    var limiter = Marzipano.RectilinearView.limit.Traditional(1024,100 * Math.PI / 180);
    var view = new Marzipano.RectilinearView({ yaw: Math.PI },limiter);

    // Create scene.
    var scene = viewer.createScene({
        source: source,geometry: geometry,view: view,pinFirstLevel: true
    });

    // display scene.
    scene.switchTo();

    scene.hotspotContainer().createHotspot(document.querySelector("#info"),{ yaw: -2.93,pitch: -0.15 });

这是我在组件加载和html视图文件添加代码片段,我在下面添加代码

<div id="pano">
 </div>
 <div id="info">
   <div class="add-marker">
    <button class="marker-ic">
       <img class="img-marker" src="../../../../assets/images/maps-and-flags.svg">
    </button>
   </div>
</div>

我能够使用上面的代码在偏执中找到热点标记,但无法找到一种方法使标记在偏执中可拖动,任何人都可以帮我解决这个问题。 提前致谢

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...