Main params
param=dyncodes – if code will have dynamic values
“text”: “]”,
“icon”: “]”,
“iconColor”: “]”,
“iconSize”: “]”,
“sceneId”: “[766 sanitize=1]”[if 767],
“URL”: “” only_url=”true”]”
Logika dinamickog koda
Potrebno je upisati u Polju “Hotspot Text” samo post ID objavljene nekretnine.
Sistem onda automatski generise Text, Icon, Icon Size, Url
Zakljucak: Za ova polja DATABASA treba generisati vrijednosti koje se ucitavalju preko GET parametra: Text, Icon, Icon Size, Url
Takodjer: Za svaki hotspot manualno se trebaju upisati podaci za:
Text (ovo je PostID Nekretnine, NIKAKO text)
HotSpot Location
Scene ID
Scene Target
Location on Target Scene
Type
Blank treba ostaviti:
Icon, Icon Size, Icon Color, URL
pannellum_360 height=”95vh” logo_id=”20976″ logo_link=”/about-us/” ]{“default”: {
“firstScene”: “scene1”,
“author”: “eBalkan Realestate”,
“autoLoad”: true },
“scenes”: {
“scene1”: {
“title”: “scene1”,
“type”: “equirectangular”,
“image_id”: 22316,
“hotSpots”: [
{
“pitch”: 8.29, “yaw”: 92.03,
“type”: “scene”,
“targetPitch”: 0.12, “targetYaw”: 141.23,
“text”: “Example22”,
“icon”: “”,
“iconColor”: “0”,
“iconSize”: “”,
“sceneId”: “scene2”
},
{
“pitch”: -4.01, “yaw”: 50.26,
“type”: “scene”,
“targetPitch”: 15.10, “targetYaw”: -86.66,
“text”: “New HotSpot”,
“icon”: “”,
“iconColor”: “0”,
“iconSize”: “”,
“sceneId”: “scene2”
},
{ }
]
} “],
“scene2”: {
“title”: “scene2”,
“type”: “equirectangular”,
“image_id”: 22317,
“hotSpots”: [
{
“pitch”: 4.45, “yaw”: -175.54,
“type”: “scene”,
“targetPitch”: 5.14, “targetYaw”: -176.40,
“text”: “Go to Scene 2”,
“icon”: “”,
“iconColor”: “0”,
“iconSize”: “”,
“sceneId”: “scene2”
},
{ }
]
} “],}
} [/pannellum_360]