I was trying with hotspots DOM. When I have a rectangilar view, it is working. but with a flat image it is not. The hotspot is not visible. Is this with a reason or is it a bug?
Code: Select all
{
"story":
{
"uid": "hotspots-DOM-story",
"name": "Hotspots DOM Story",
"slug": "hotspots-dom-story",
"description": "This is sample of DOM hotspots",
"default": "scene-0",
"scenes":
[
{
"uid": "scene-0",
"name": "First scene",
"slug": "first-scene",
"description": "This is the first and only scene",
"background": "#202040",
"media": {
"uid": "video-360-intro", "type": "image",
"source":{"url": "media/video_plat/intro/screenshot.jpg"}
},
"hotspots":
[
{
"uid": "hotspot-dom-six",
"interactive": true,
"type": "dom",
"dom":{"id": "hotspot-six","width": "5em","height": "5em","color": "transparent","index": 6,"class": [ "media-style__pin", "content-style__above", "hover-trig" ]},
"transform":{"position": {"x": 0,"y": 0,"z": -220}}
}
],
"view":{"type": "flat"}
}
]
}
}
Above an example of my code I was debugging with. Without the sentence "view":{"type": "flat"} I can see the hotspots but is my flat image distorted.