var layer;
var fvp;
var lightbox;
var conf = {
"frontendtype": "tour",
"modes": ["gallery", "map", "list", "listMap"],
"initMode": "listMap",
"whatType": "none",
"whereType": "none",
"withUrlHash": false,
"center": [ 10.2210235, 47.560012 ],
"zoom": 10,
// Do not open detail view when an OOI is selected
"actionOpenType": "none",
// click handler:
// list item, gallery thumbnail, map marker or info window
// parameter d: OOI data object
// parameter s: click event name (string)
"onOoiClick": function (d, s) {
// ignore map marker click
if ( s != "mapMarker" ) {
// instantiate lightbox
lightbox = new oa.api.Lightbox( { init_value : d.id } );
// open lightbox
lightbox.show();
}
}
};
fvp = oa.api.flexviewpage( conf );