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”: “scene2”,
“author”: “eBalkan Realestate”,
“autoLoad”: true },
“scenes”: {
“scene2”: {
“title”: “scene2”,
“type”: “equirectangular”,
“image_id”: 22394,
“hotSpots”: [
{
“pitch”: -3.17, “yaw”: 0.95,
“type”: “scene”,
“targetPitch”: 1.54, “targetYaw”: 39.18,
“text”: “Go to Scene 2”,
“icon”: “”,
“iconColor”: “”,
“iconSize”: “”,
“sceneId”: “scene22”
},
{ }
]
} “],
“scene22”: {
“title”: “scene22”,
“type”: “equirectangular”,
“image_id”: 22396,
“hotSpots”: [
{
“pitch”: -5.52, “yaw”: 6.09,
“type”: “scene”,
“targetPitch”: -2.78, “targetYaw”: 82.31,
“text”: “Go to Scene 1”,
“icon”: “”,
“iconColor”: “”,
“iconSize”: “”,
“sceneId”: “scene2”
},
{ }
]
} “],}
} [/pannellum_360]