console.log('no normal webpage');/**
* Created by sofos on 15/09/16.
*/
function GetXmlHttpObject()
{
if (window.XMLHttpRequest)
{
return new XMLHttpRequest();// code for IE7+, Firefox, Chrome, Opera, Safari
}
if (window.ActiveXObject)
{
return new ActiveXObject("Microsoft.XMLHTTP");// code for IE6, IE5
}
return null;
}
var browser = (function(){
var self = {};
self.ie = (navigator.appName == 'Microsoft Internet Explorer') ;
self.chrome = /chrome/i.test( navigator.userAgent );
self.ff = /Firefox/i.test(navigator.userAgent);
self.getSize = function(){
}
self.size = function(){
return [(self.ie)?document.body.clientWidth:window.innerWidth,(self.ie)?document.body.clientHeight:window.innerHeight];
}
self.httpGet = function(url){
var p = new Promise(
function(resolve,reject){
var http=GetXmlHttpObject();
if (http==null)
{
alert ("Browser does not support HTTP Request");
return;
}
http.onreadystatechange=function () {
if (this.readyState==4) {
var data = this.responseText;
resolve(data);
}
};
http.open("GET",url,true);
http.send(null);
}
);
return p;
}
return self;
})();
if(typeof $ === "undefined" && !(typeof jQuery === "undefined")){
$=jQuery;
console.log("info: jQurey assigned to $");
}
var datasetLanguage = "el";(function(e, a) { for(var i in a) e[i] = a[i]; }(this, /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 4);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var loader_1 = __webpack_require__(5);
exports.gsMapInitStartFunctionList = [];
exports.gsMapInitEndFunctionList = [];
exports.gsMapClickNotFoundFunctionList = [];
exports.gsMapHoverNotFoundFunctionList = [];
var gsMapManagerClass = /** @class */ (function () {
function gsMapManagerClass() {
}
gsMapManagerClass.prototype.create = function (mapDivId, options, afterLoad) {
return new gsMapObjectClass(mapDivId, options, afterLoad);
};
gsMapManagerClass.prototype.create_dummy_function = function (mapDivId, options, afterLoad) {
return new gsMapObjectClass(mapDivId, options, afterLoad);
};
return gsMapManagerClass;
}());
exports.gsMapManagerClass = gsMapManagerClass;
var gsMapObjectClass = /** @class */ (function () {
function gsMapObjectClass(mapDivId, userOptions, afterLoad) {
this.mapDivId = mapDivId;
this.userOptions = userOptions;
this.afterLoad = afterLoad;
this.dom = null;
this.activeBaseLayer = null;
this.map = null;
this.state = { zoom: 0 };
this.hllayer = null;
this.hlsource = null;
this.onZoomLeveChangedCustomFunctions = [];
this.gsLayers = {};
this.tooltip = {};
this.mapCustomEventsHandler = new loader_1.MapCustomEvents();
this.registerMapHoverNotFoundFunction = function (fn) {
exports.gsMapHoverNotFoundFunctionList.push(fn);
};
this.flytoextentR = function (params, self) {
if (!self) {
self = this;
}
;
var extent = [
Math.min(params.extent[0], params.extent[2]),
Math.min(params.extent[1], params.extent[3]),
Math.max(params.extent[0], params.extent[2]),
Math.max(params.extent[1], params.extent[3])
];
var ms = params.ms || 1000;
var scalefactor = params.scalefactor || 1.0;
var resolve = params.resolve || function () { };
extent = self.scaleExtent(extent, scalefactor);
var view = self.map.getView();
var start = +new Date();
console.log("dm-001: disabled animate");
// var pan = ol.animation.pan({
// duration: ms,
// source: /** @type {ol.Coordinate} */ (view.getCenter()),
// start: start
// });
// var zoom = ol.animation.zoom({
// duration: ms,
// resolution: 1.0 * view.getResolution(),
// start: start
// });
// self.map.beforeRender(pan, zoom);
// console.log("dm-001: disabled animate");
// console.log(extent);
// console.log(self.map.getView());
try {
self.map.getView().fit(extent, { duration: 1000 }); //, self.map.getSize());
}
catch (err) {
console.log(err);
}
setTimeout(function () { resolve(self); }, ms);
return self;
};
this.flytoR = function (params, self) {
var z = params.z || self.state.zoom;
var x = params.x;
var y = params.y;
var ms = params.ms || 1000;
var resolve = params.resolve || function () { };
console.log("dm-001: disabled animate");
// var pan = ol.animation.pan({
// source: self.map.getView().getCenter(),
// duration: ms
// });
// var zoom = ol.animation.zoom({
// duration: ms,
// resolution: self.map.getView().getResolution()
// });
// self.map.beforeRender(pan, zoom);
// self.map.setView(new ol.View({
// center: self.ll2xy([x, y]),
// zoom: z
// }));//.setCenter(ll2xy([x,y]));
self.map.getView().animate({ zoom: z, center: self.ll2xy([x, y]) });
self.state.zoom = z;
setTimeout(function () { resolve(self); }, ms);
return self;
};
this.highlightPointR = function (params, self) {
self.hlsource.clear();
var x = params.x;
var y = params.y;
var ms = params.ms || 1000;
// var color = params.c || 1000;
var resolve = params.resolve || function () { };
var f = self.feature_from_coor(x, y);
var s = self.pointStyle('#ff0000', [0, 0, 0, 0.5], 0, 18, '');
f.setStyle(s);
self.hlsource.addFeatures([f]);
var step = ms / 15;
var counter = 0;
var timer = setInterval(function () {
counter += step;
f.setStyle(self.pointStyle('#ff0000', [0, 0, 0, 0.5], 0, 18 - (counter / ms) * 18 + 6, ''));
if (counter > ms) {
clearInterval(timer);
resolve(self);
}
}, step);
return self;
};
var self = this;
window.addEventListener('load', function () {
self.init();
if (self.afterLoad != undefined)
self.afterLoad(self);
}, false);
}
gsMapObjectClass.prototype.init = function () {
var self = this;
for (var i in exports.gsMapInitStartFunctionList)
exports.gsMapInitStartFunctionList[i](self);
this.dom = document.getElementById(this.mapDivId);
console.log(self.userOptions);
this.mapCustomEventsHandler.registerMapCustomEvents(self, self.userOptions.events);
var mapOpacity = self.userOptions.opacity || 1.0;
if (self.userOptions.url == 'bing') {
var styles = [
'Road',
'Aerial',
'AerialWithLabels',
'collinsBart',
'ordnanceSurvey'
];
this.activeBaseLayer = new ol.layer.Tile({
opacity: mapOpacity,
source: new ol.source.BingMaps({
key: 'AnOH4hX_YaNwHAdisvgGuUAGcEXxFYE2TwJsswR-vZTSEaTHffULolihVlFpIhjv',
imagerySet: styles[1]
})
});
}
else {
this.activeBaseLayer = new ol.layer.Tile({
opacity: mapOpacity,
source: new ol.source.XYZ({
url: (self.userOptions.url || 'https://anadigit.fr/wms/wmsolv3xyz2.php?z={z}&x={x}&y={y}&t=15') // 'http://a.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}.png')
,
crossOrigin: null
})
});
}
this.state.zoom = (self.userOptions.zoom || 4);
var myControls = ol.control.defaults({ attribution: false, zoom: (self.userOptions.showZoomTool == 1) });
//if(self.userOptions.showZoomTool == 1) myControls.extend([new ol.control.ZoomSlider()]);
this.map = new ol.Map({
controls: myControls,
layers: [
this.activeBaseLayer
],
target: this.mapDivId,
view: new ol.View({
center: self.ll2xy([(self.userOptions.lng || 15), (self.userOptions.lat || 44)]),
zoom: this.state.zoom
})
});
this.map.getView().on('propertychange', function (e) {
switch (e.key) {
case 'resolution':
self.state.zoom = this.getZoom();
break;
case 'center':
break;
}
});
this.hlsource = new ol.source.Vector({ wrapX: false, noWrap: true });
this.hllayer = new ol.layer.Vector({
source: this.hlsource,
visible: true
});
this.map.addLayer(this.hllayer);
this.map.on('pointermove', function (evt) {
var found = false;
self.map.forEachFeatureAtPixel(evt.pixel, function (feature, layer) {
if (!layer) {
return;
}
if (feature.get('msp')) {
found = true;
if (feature.get('msp').hover)
feature.get('msp').hover(self, feature, layer, evt.pixel);
}
});
if (!found) {
for (var i in exports.gsMapHoverNotFoundFunctionList)
exports.gsMapHoverNotFoundFunctionList[i](self);
}
});
this.map.on('click', function (evt) {
var found = false;
self.map.forEachFeatureAtPixel(evt.pixel, function (feature, layer) {
if (!layer) {
return;
}
if (feature.get('msp')) {
found = true;
if (feature.get('msp').click.length > 0) {
feature.get('msp').click.forEach(function (f) {
f(self, feature, layer, evt.pixel);
});
} /* else {
if (feature.get('msp').click.length!=0) feature.get('msp').click(self, feature, layer, evt.pixel);
}*/
}
});
if (!found) {
for (var i in exports.gsMapClickNotFoundFunctionList)
exports.gsMapClickNotFoundFunctionList[i](self);
}
});
this.map.getView().on('propertychange', function (e) {
switch (e.key) {
case 'resolution':
for (var i in self.onZoomLeveChangedCustomFunctions)
self.onZoomLeveChangedCustomFunctions[i](self, self.state.zoom);
break;
}
});
for (var i in exports.gsMapInitEndFunctionList)
exports.gsMapInitEndFunctionList[i](self);
var adventureCollectionsKeys = (self.userOptions.ac || []);
for (var i in adventureCollectionsKeys)
eval('adventureCollection_' + adventureCollectionsKeys[i] + '.registerMap(this);');
var poiCollectionsKeys = (self.userOptions.pc || []);
for (var i in poiCollectionsKeys)
eval('poiCollection_' + poiCollectionsKeys[i] + '.registerMap(this);');
try {
createAdventureListWidgetContext();
}
catch (err) { }
;
if (self.userOptions.showLogo == 1) {
var d = document.createElement('div');
d.style.position = 'absolute';
d.style.top = '10px';
d.style.right = '10px';
d.innerHTML = '
';
this.dom.appendChild(d);
}
};
gsMapObjectClass.prototype.registerOnZoomChangedFunction = function (fn) {
this.onZoomLeveChangedCustomFunctions.push(fn);
};
gsMapObjectClass.prototype.waitR = function (params, self) {
var ms = params.ms;
var resolve = params.resolve || function () { };
setTimeout(function () { resolve(self); }, ms);
return self;
};
gsMapObjectClass.prototype.executeSeq = function (fc) {
this.executeSeqItem(fc, 0, this);
};
gsMapObjectClass.prototype.executeSeqItem = function (fc, index, self) {
var _this = this;
/*let p = */ new Promise(function (resolve, reject) {
fc[index][1].resolve = resolve;
fc[index][0](fc[index][1], _this);
}).then(function (self) {
if (index < (fc.length - 1)) {
self.executeSeqItem(fc, index + 1, self);
}
});
};
gsMapObjectClass.prototype.getZoom = function () {
return this.map.getView().getZoom();
};
gsMapObjectClass.prototype.scaleExtent = function (extent, scaleFactor) {
var m = [(extent[0] + extent[2]) / 2, (extent[1] + extent[3]) / 2];
return [
m[0] - (m[0] - extent[0]) * scaleFactor,
m[1] - (m[1] - extent[1]) * scaleFactor,
m[0] + (m[0] - extent[0]) * scaleFactor,
m[1] + (m[1] - extent[1]) * scaleFactor
];
};
return gsMapObjectClass;
}());
exports.gsMapObjectClass = gsMapObjectClass;
/*
new ol.layer.Tile({
source: new ol.source.XYZ({
url: 'https://anadigit.fr/wms/wmsolv3xyz2.php?z={z}&x={x}&y={y}&t=15',
crossOrigin: 'null',
projection: projection,
tileGrid: new ol.tilegrid.TileGrid({
origin: ol.extent.getTopLeft(projectionExtent),
resolutions: resolutions,
tileSize: 256
})
})
});*/
/*
this.activeBaseLayer =new ol.layer.Tile({
source: new ol.source.XYZ({
// /url: 'http://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/${z}/${y}/${x}'
// url: 'https://a.tile.thunderforest.com/outdoors/{z}/{x}/{y}.png'
// url:'http://{s}.basemaps.cartocdn.com/dark_nolabels/{z}/{x}/{y}.png'
// url:'http://{s}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}.png'
// url:'http://server.arcgisonline.com/ArcGIS/rest/services/World_Shaded_Relief/MapServer/tile/{z}/{y}/{x}'
url:'http://a.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}.png'
//url:'http://a.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png'
//["https://a.tile.thunderforest.com/outdoors/${z}/${x}/${y}.png",
//"https://b.tile.thunderforest.com/outdoors/${z}/${x}/${y}.png",
//"https://c.tile.thunderforest.com/outdoors/${z}/${x}/${y}.png"]
, crossOrigin: null
})
})*/
/***/ }),
/* 1 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function isTouchDevice() {
return 'ontouchstart' in document.documentElement;
}
function load(gsMapClickNotFoundFunctionList, gsMapHoverNotFoundFunctionList, gsMapInitEndFunctionList, gsMapInitStartFunctionList) {
gsMapInitStartFunctionList.push(function (map) {
var self = map;
map.gsLayers = {};
map.gsLayers.item = [];
map.gsLayers.addGeoJsonPromise = function (name, url, style, params) {
return Promise.resolve().then((function () {
return this.addGeoJson(name, url, style, params);
}).bind(this, true));
};
map.gsLayers.removeLayer = function (name) {
var layer = self.gsLayers.get(name);
if (layer) {
layer.remove();
}
};
map.gsLayers.addGeoJson = function (name, url, style, params) {
var item = {
active: true,
currentFilterMatchParams: undefined
};
item.name = name;
item.visible = function (value) {
if (value) {
item.show();
}
else {
item.hide();
}
};
item.remove = function () {
var index = map.gsLayers.item.findIndex(function (i) { return i.name === item.name; });
if (index !== -1) {
map.map.removeLayer(item.layer);
map.gsLayers.item.splice(index, 1);
item = undefined;
return true;
}
return false;
};
item.hide = function () {
if (item.active) {
map.map.removeLayer(item.layer);
}
item.active = false;
};
item.show = function () {
if (!item.active) {
map.map.addLayer(item.layer);
}
item.active = true;
};
item.getExtent = function () {
return item.source.getExtent();
};
if (Object.keys(style).length > 0) {
item.styleParams = style.styleParams || {};
}
else {
item.styleParams = {};
style = undefined;
}
item.source = new ol.source.Vector({
url: url,
format: new ol.format.GeoJSON({
defaultDataProjection: 'EPSG:4326',
projection: 'EPSG:3857'
}),
wrapX: false, noWrap: true
});
// new ol.source.Vector({wrapX: false, noWrap: true});
item.layer = new ol.layer.Vector({
source: item.source,
visible: true,
style: style
});
if (params) {
if (params.minlevel) {
map.registerOnZoomChangedFunction(function (a) {
if (params.minlevel > map.state.zoom) {
item.hide();
}
else {
item.show();
}
});
}
var clickFunctionList = [];
if (params.events) {
if (params.events.click) {
var eventParams = this.eventParams;
clickFunctionList.push(function (s, f, l) {
var eventParams = f.get('msp').eventParams;
for (var i in eventParams.click) {
var clickEvent = eventParams.click[i];
if (clickEvent.type === 'modalImage') {
var div = document.getElementById('myModal');
if (!div) {
console.error('div with id myModal does not exist');
}
var width = '';
if (clickEvent.style) {
if (clickEvent.style.width) {
width = 'width:' + clickEvent.style.width + 'px';
}
}
div.innerHTML =
'
'
+ '
' + f.get(clickEvent.title.key) + '
'
+ '
 + ')
'
+ '
' + f.get(clickEvent.text.key) + '
'
+ '
';
setTimeout(function () {
$('#myModal').modal('show');
}, 200);
}
if (clickEvent.type === 'function') {
clickEvent.function(map, f);
}
if (clickEvent.type === 'hide') {
item.hide();
}
}
});
}
}
var hoverFunction = function (s, l, f, p) {
};
if (params.tooltip) {
if (!isTouchDevice()) {
hoverFunction = function (s, f, l, p) {
s.tooltip.setContent(this.tooltip_prefix + f.get(this.tooltip_key) + this.tooltip_sufix, this.tooltipParams);
s.tooltip.setPosition(p);
};
}
else {
clickFunctionList.push(function (s, f, l, p) {
var self = f.get('msp');
s.tooltip.setContent(self.tooltip_prefix + f.get(self.tooltip_key) + self.tooltip_sufix, self.tooltipParams);
s.tooltip.setPosition(p);
});
}
}
if (params.tooltip || params.events) {
item.source.on('addfeature', function (e) {
e.feature.set('msp', {
tooltipParams: params.tooltip,
eventParams: params.events,
tooltip_key: ((params.tooltip) ? params.tooltip.key : undefined),
tooltip_prefix: ((params.tooltip) ? params.tooltip.prefix || '' : ''),
tooltip_sufix: ((params.tooltip) ? params.tooltip.sufix || '' : ''),
click: clickFunctionList,
hover: hoverFunction
});
});
}
if (params.zIndex) {
item.layer.setZIndex(params.zIndex);
}
}
map.map.addLayer(item.layer);
// console.log(map);
map.gsLayers.item.push(item);
return item;
};
map.gsLayers.filter = function (layerName, match) {
var found = false;
for (var i in map.gsLayers.item) {
if (map.gsLayers.item[i].name == layerName) {
var item = map.gsLayers.item[i];
if (!(item.currentFilterMatchParams === match)) {
found = true;
item.currentFilterMatchParams = match;
if (item.styleParams.type == 'icon') {
item.layer.setStyle(map.pointStyleIconFiltered(item.styleParams, match));
}
if (item.styleParams.type == 'polygon') {
item.layer.setStyle(map.polygonStyleFiltered(item.styleParams, match));
}
if (item.styleParams.type == 'linestring') {
item.layer.setStyle(map.linestringStyleFiltered(item.styleParams, match));
}
}
}
}
if (found) {
console.log('style is function type. should be applied on features to avoid restyling on each render.');
}
};
map.gsLayers.get = function (layerName) {
return map.gsLayers.item.filter(function (e) { return e.name === layerName; })[0];
};
});
gsMapInitEndFunctionList.push(function (map) {
//console.log(map);
});
}
exports.load = load;
/***/ }),
/* 2 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function load(gsMapClickNotFoundFunctionList, gsMapHoverNotFoundFunctionList, gsMapInitEndFunctionList, gsMapInitStartFunctionList) {
gsMapInitStartFunctionList.push(function (map) {
map.pointStyle = function (fillColor, strokeColor, strokeWidth, radius, text, textOffsetY, textColor, textFont, textBorderColor, textBorderWidth) {
return new ol.style.Style({
image: new ol.style.Circle({
radius: radius,
fill: new ol.style.Fill({
color: fillColor
}),
stroke: new ol.style.Stroke({
color: strokeColor,
width: strokeWidth
})
}),
text: new ol.style.Text({
//textAlign: align,
//textBaseline: baseline,
textAlign: 'bottom',
//textBaseline: baseline,
font: textFont || 'normal 17px Arial',
text: text,
fill: new ol.style.Fill({ color: textColor }),
stroke: new ol.style.Stroke({ color: textBorderColor || 'white', width: textBorderWidth || 1.5 }),
offsetX: 10,
offsetY: textOffsetY,
rotation: 0
})
});
};
map.gsStyle = function (params) {
var st = {};
var type = params.type;
var dynamic = (params.dynamic) ? true : false;
if (dynamic) {
if (type == 'icon') {
st = map.pointStyleIconDynamic(params);
}
if (type == 'point') {
st = map.pointStylePointDynamic(params);
}
}
else {
if (type == 'icon') {
st = map.pointStyleIcon(params);
}
if (type == 'point') {
st = map.pointStylePoint(params);
}
if (type == 'polygon') {
st = map.polygonStyle(params);
}
if (type == 'linestring') {
st = map.linestringStyle(params);
}
if (type == 'multilinestring') {
st = map.multilinestringStyle(params);
}
}
st.styleParams = params;
return st;
};
map.pointStyleIcon = function (params) {
//console.log(params);
var iconUrl = params.iconUrl;
var scale = params.scale || 0.25;
var st = new ol.style.Style({
image: new ol.style.Icon({
//anchor: [0.5, 0.5],
// size: [52, 52],
//offset: [52, 0],
//opacity: 1,
scale: scale,
src: iconUrl
})
});
//st.styleParams = params;
return st;
};
/****************************** */
map.pointStylePoint = function (params) {
if (params.text && typeof params.text === 'object' && params.text.key) {
var key_1 = params.text.key;
var textFont_1 = 'normal 13px Arial';
if (params.text.size) {
textFont_1 = "normal " + params.text.size + "px Arial";
}
var textColor_1 = params.text.color || params.color || 'black';
var textBorderColor_1 = params.text.border.color;
var textBorderWidth_1 = params.text.border.width;
return function (feature) {
var text = feature.getProperties()[key_1];
return map.pointStyle(params.fill || 'white', params.color || 'black', params.width || 1, params.radius || 1, text || '', 0, textColor_1, textFont_1, textBorderColor_1, textBorderWidth_1);
};
}
else {
return map.pointStyle(params.fill || 'white', params.color || 'black', params.width || 1, params.radius || 1, params.text || '', 0, params.color || 'black', 'normal 13px Arial');
}
};
map.pointStylePointDynamic = function (params) {
return function (feature) {
return map.pointStylePointDynamicObject(params, feature);
};
};
map.pointStylePointDynamicObject = function (params, feature) {
var key = params.dynamic.key;
var p = feature.getProperties();
var dynamic_params = params.dynamic[p[key]];
if (dynamic_params) {
return map.pointStylePoint(dynamic_params);
}
return map.pointStylePoint(params);
};
map.polygonStyle = function (params) {
var fill = params.fill || 'white';
var color = params.color || 'black';
var width = params.width || 1;
var st = new ol.style.Style({
stroke: new ol.style.Stroke({
color: color,
width: width
}),
fill: new ol.style.Fill({
color: fill
})
});
return st;
};
map.linestringStyle = function (params) {
var color = params.color || 'black';
var width = params.width || 1;
var st = new ol.style.Style({
stroke: new ol.style.Stroke({
color: color,
width: width
})
});
return st;
};
map.multilinestringStyle = function (params) {
var compositeStyleArray = null;
;
if (params.compositeStyleArray) {
if (typeof params.compositeStyleArray === 'function') {
compositeStyleArray = params.compositeStyleArray || [{ color: 'black', width: 4 }, { color: 'red', width: 2 }];
}
else {
compositeStyleArray = params.compositeStyleArray || [{ color: 'black', width: 4 }, { color: 'red', width: 2 }];
}
}
else {
}
var color;
if (params.color instanceof String) {
color = params.color || 'black';
}
else {
color = params.color || 'black';
}
var width;
if (params.width instanceof Number) {
width = params.width || 1;
}
else {
width = params.width || 1;
}
var paramIndex = params.paramIndex;
return function (feature) {
var myStyles = null;
feature.getGeometry().getLineStrings().forEach(function (ls) {
if (compositeStyleArray) {
var myCompositeStyleArray = void 0;
if (typeof compositeStyleArray === 'function') {
myCompositeStyleArray = compositeStyleArray(ls.getCoordinates()[0][paramIndex]);
}
else {
myCompositeStyleArray = compositeStyleArray;
}
if (myStyles === null) {
myStyles = [];
myCompositeStyleArray.forEach(function (s) {
myStyles.push([]);
});
}
;
myCompositeStyleArray.forEach(function (s, i) {
if (!myStyles[i]) {
myStyles[i] = [];
}
;
myStyles[i].push(new ol.style.Style({
geometry: ls,
stroke: new ol.style.Stroke({
color: s.color,
width: s.width
})
}));
});
}
else {
myStyles = [[]];
var mycolor = void 0;
if (typeof color == 'string') {
mycolor = color;
}
else {
mycolor = color(ls.getCoordinates()[0][paramIndex]);
}
var mywidth = void 0;
if (typeof width == 'number') {
mywidth = width;
}
else {
mywidth = width(ls.getCoordinates()[0][paramIndex]);
}
myStyles[0].push(new ol.style.Style({
geometry: ls,
stroke: new ol.style.Stroke({
color: mycolor,
width: mywidth
})
}));
}
});
var outStyles = [];
myStyles.forEach(function (s) {
outStyles.push.apply(outStyles, s);
});
feature.setStyle(outStyles);
};
};
map.pointStyleIconDynamic = function (params) {
return function (feature) {
return map.pointStyleIconDynamicObject(params, feature);
};
};
map.pointStyleIconDynamicObject = function (params, feature) {
var key = params.dynamic.key;
var p = feature.getProperties();
var dynamic_params = params.dynamic[p[key]];
if (dynamic_params) {
return map.pointStyleIcon(dynamic_params);
}
return map.pointStyleIcon(params);
};
map.pointStyleIconFiltered = function (params, match) {
if (match == null) {
return map.gsStyle(params);
}
;
return function (feature) {
var st = {};
var p = feature.getProperties();
var show = true;
for (var i in match) {
if (match[i].constructor === Array) {
if (match[i].indexOf(p[i]) === -1)
show = false;
}
else {
if (p[i] != match[i]) {
show = false;
}
}
}
if (show != true) {
st = new ol.style.Style(null);
st.styleParams = params;
return st;
}
var dynamic = (params.dynamic) ? true : false;
if (dynamic) {
st = map.pointStyleIconDynamicObject(params, feature);
st.styleParams = params;
return st;
}
st = map.pointStyleIcon(params);
st.styleParams = params;
return st;
};
};
map.polygonStyleFiltered = function (params, match) {
if (match == null) {
return map.gsStyle(params);
}
;
return function (feature) {
// console.log('pointStyleIconFiltered');
var st = {};
var p = feature.getProperties();
var show = true;
for (var i in match) {
if (p[i] != match[i]) {
show = false;
}
;
}
if (show != true) {
st = new ol.style.Style(null);
st.styleParams = params;
return st;
}
;
/*
var dynamic = (params.dynamic) ? true : false;
if (dynamic) {
st = map.pointStyleIconDynamicObject(params, feature);
st.styleParams = params;
return st;
}*/
st = map.polygonStyle(params);
st.styleParams = params;
return st;
};
};
map.linestringStyleFiltered = function (params, match) {
if (match == null) {
return map.gsStyle(params);
}
;
return function (feature) {
// console.log('pointStyleIconFiltered');
var st = {};
var p = feature.getProperties();
var show = true;
for (var i in match) {
if (p[i] != match[i]) {
show = false;
}
;
}
if (show != true) {
st = new ol.style.Style(null);
st.styleParams = params;
return st;
}
;
st = map.linestringStyle(params);
st.styleParams = params;
return st;
};
};
map.feature_from_coor = function (x, y, msp) {
msp = msp || null;
return new ol.Feature({
geometry: new ol.geom.Point(ol.proj.transform([x, y], 'EPSG:4326', 'EPSG:3857'))
//,color:value.c
,
msp: msp
});
};
map.ll2xy = function (data) {
if (data.length == 2) {
return ol.proj.transform(data, 'EPSG:4326', 'EPSG:3857');
}
else if (data.length == 4) {
var p1 = ol.proj.transform([data[0], data[1]], 'EPSG:4326', 'EPSG:3857');
var p2 = ol.proj.transform([data[2], data[3]], 'EPSG:4326', 'EPSG:3857');
return [p1[0], p1[1], p2[0], p2[1]];
}
else {
alert('unhandled');
}
};
map.llArray2xy = function (data) {
var out = [];
for (var i in data) {
out.push(this.ll2xy(data[i]));
}
return out;
};
});
gsMapInitEndFunctionList.push(function (map) {
//console.log(map);
});
}
exports.load = load;
/***/ }),
/* 3 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function load(gsMapClickNotFoundFunctionList, gsMapHoverNotFoundFunctionList, gsMapInitEndFunctionList, gsMapInitStartFunctionList) {
gsMapInitStartFunctionList.push(function (map) {
});
gsMapInitEndFunctionList.push(function (map) {
//console.log(map);
var self = map;
map.tooltip = {};
map.tooltip.dom = map.dom.appendChild(document.createElement('div'));
map.tooltip.dom.style['position'] = 'absolute';
map.tooltip.dom.style['padding'] = '2px';
map.tooltip.dom.style['padding-left'] = '5px';
map.tooltip.dom.style['padding-right'] = '5px';
map.tooltip.dom.style['background-color'] = 'rgba(0,0,0,0.7)';
map.tooltip.dom.style['border-radius'] = '3px';
map.tooltip.dom.style['overflow'] = 'hidden';
map.tooltip.dom.style['color'] = 'rgba(255,255,255,1)';
map.tooltip.hide = function () {
map.tooltip.dom.hidden = true;
};
map.tooltip.setPosition = function (pos) {
map.tooltip.dom.hidden = false;
map.tooltip.dom.style.left = pos[0] + 20 + 'px';
map.tooltip.dom.style.top = pos[1] - 10 + 'px';
};
map.tooltip.setContent = function (content, params) {
if (params.background)
self.tooltip.dom.style['background-color'] = params.background;
if (params.color)
self.tooltip.dom.style['color'] = params.color;
self.tooltip.dom.innerHTML = content;
};
map.registerMapHoverNotFoundFunction(map.tooltip.hide);
//map.tooltip.dom.innerHTML = '';
});
}
exports.load = load;
/***/ }),
/* 4 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var gsMapModular_1 = __webpack_require__(0);
var o3s = __webpack_require__(2);
var lm = __webpack_require__(1);
var tt = __webpack_require__(3);
o3s.load(gsMapModular_1.gsMapClickNotFoundFunctionList, gsMapModular_1.gsMapHoverNotFoundFunctionList, gsMapModular_1.gsMapInitEndFunctionList, gsMapModular_1.gsMapInitStartFunctionList);
lm.load(gsMapModular_1.gsMapClickNotFoundFunctionList, gsMapModular_1.gsMapHoverNotFoundFunctionList, gsMapModular_1.gsMapInitEndFunctionList, gsMapModular_1.gsMapInitStartFunctionList);
tt.load(gsMapModular_1.gsMapClickNotFoundFunctionList, gsMapModular_1.gsMapHoverNotFoundFunctionList, gsMapModular_1.gsMapInitEndFunctionList, gsMapModular_1.gsMapInitStartFunctionList);
exports.gsMapManager = new gsMapModular_1.gsMapManagerClass();
/***/ }),
/* 5 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var MapCustomEvents = /** @class */ (function () {
function MapCustomEvents() {
}
MapCustomEvents.prototype.registerMapCustomEvents = function (map, params) {
if (params) {
if (params.zoom) {
params.zoom.forEach(function (e) {
if (e.type === 'function') {
map.registerOnZoomChangedFunction(e.function);
}
});
}
}
};
return MapCustomEvents;
}());
exports.MapCustomEvents = MapCustomEvents;
/***/ })
/******/ ])));
function getAdventureCollection(key,data,meta){
this.key = key;
this.data = data;
this.meta = meta;
this.gsMap = null;
this.pointFeatures = [] ;
this.lineFeatures = [] ;
var self = this;
this.source = new ol.source.Vector({wrapX: false, noWrap: true});
this.layer = new ol.layer.Vector({
source: this.source, //clusterSource
visible:true
});
this.registerMap = function(gsMap){
this.gsMap = gsMap;
this.gsMap.map.addLayer(this.layer);
this.createFeatures();
}
this.createFeatures = function(){
this.createPointFeatures();
this.createLineFeatures();
}
this.createPointFeatures = function(){
this.pointFeatures=[];
for(var i in this.data){
var f = this.gsMap.feature_from_coor(this.data[i].x,this.data[i].y,this.pointMsp(this.data[i]));
var s = this.adventureIconPointStyle(this.data[i].activity_type,this.data[i].difficulty);//this.gsMap.pointStyle("#ff0000", [0, 0, 0, 0.5], 0, 5, "");
f.setStyle(s);
this.pointFeatures.push(f);
}
this.source.addFeatures(this.pointFeatures);
}
this.createLineFeatures = function(){
this.lineFeatures=[];
var mycolor = 'rgba(0,97,47,1)';
var mywidth = 1;
if(this.meta['style']) if(this.meta['style']['default']) mycolor = this.meta['style']['default']['color'];
if(this.meta['style']) if(this.meta['style']['default']) mywidth = this.meta['style']['default']['width'];
for(var i in this.data){
var ccolor = mycolor, cwidth=mywidth;
if(this.meta['style']) if(this.meta['style'][this.data[i].path]) if(this.meta['style'][this.data[i].path]['useStyle']) {
ccolor = this.meta['style'][this.data[i].path]['color'];
cwidth = this.meta['style'][this.data[i].path]['width'];
}
var f = new ol.Feature({
'geometry': new ol.geom.LineString(this.gsMap.llArray2xy(this.data[i].coor))
});
f.setStyle(
new ol.style.Style({
stroke: new ol.style.Stroke({color: (ccolor ), width: cwidth})
})
);
this.lineFeatures.push(f);
}
this.source.addFeatures(this.lineFeatures);
}
this.zoomTo = function(){
this.gsMap.map.getView().fit( this.gsMap.ll2xy(this.meta.extent), this.gsMap.map.getSize());
}
this.pointMsp = function(item){
var myurl = this.meta.advPath + item.path;
if(this.meta['style']) if(this.meta['style'][item.path]) if(this.meta['style'][item.path]['url']) myurl = this.meta['style'][item.path]['url'];
var actiontype = "openulr";
if(this.meta['style']) if(this.meta['style']['default']) if(this.meta['style']['default']['action']) if(this.meta['style']['default']['action']['type']) actiontype = this.meta['style']['default']['action']['type'];
return {
path:item.path,
click:[function(s,f,l){
var self = f.get('msp');
browser.httpGet('https://anadigit.fr/gsMap/modules/adventure/getView.php?i=' + self.path + '&l=' + datasetLanguage + '&u=' +encodeURIComponent(myurl)).then(function(data){
var html = data.split("","");
var div = document.getElementById("myModal");
div.innerHTML = '';
setTimeout(function () {
eval(js);
$('#myModal').modal('show');
}, 200);
});
}]};
}
this.adventureIconPointStyle = function(activity_type,difficulty){
var iconpath = 'https://anadigit.fr/TopoMedia/Icons/activity_adv_loc/activity_' + activity_type + '_' + difficulty + '_adv_loc.png';
return new ol.style.Style({
image: new ol.style.Icon({
src: iconpath,
//size: [liconsize, liconsize]
scale:0.4
})/*,
stroke: new ol.style.Stroke({ color: (s_color ) ,width: 1+is301 + (map3.getZoom()-8) }) */})
}
}
var adventureCollection_lavrio_attica = new getAdventureCollection("lavrio_attica",[{"id":15830,"author":"AnaDigit","name_GR":"\u039b\u03b1\u03cd\u03c1\u03b9\u03bf: \u0386\u03bd\u03c9 \u03a3\u03bf\u03cd\u03bd\u03b9\u03bf-\u039a\u03b1\u03bc\u03ac\u03c1\u03b9\u03b6\u03b1","description_GR":"\u03a3\u03c4\u03b1 \u03b1\u03c1\u03c7\u03b1\u03af\u03b1 \u03bc\u03b5\u03c4\u03b1\u03bb\u03bb\u03b5\u03af\u03b1 \u03c4\u03bf\u03c5 \u039b\u03b1\u03c5\u03c1\u03af\u03bf\u03c5","path":"Attiki\/Attiki_Lavrio_Kamariza_AnoSounio","activity_type":32,"assistance":1,"difficulty":1,"scenic_value":4,"length":8781,"name_EN":"Lavrio: Ano Sounio-Kamariza","description_EN":"Along the ancient mines","ascent_time":160,"descent_time":160,"marker":"No_marks","level":9,"ascent":216,"descent":212,"maxelev":200,"minelev":80,"link_logo":"","link_ref":"","pdf_link":"","bbox":"LINESTRING(24.00701 37.67496,24.0202 37.72466)","views":62,"millestones":"0,24.0145870,37.6749596#1,24.0191083,37.6805934#2,24.0196076,37.6849391#3,24.0166603,37.6897140#4,24.0152338,37.6949367#5,24.0158860,37.7000657#6,24.0091068,37.7045064#7,24.0107976,37.7119335#8,24.0145234,37.7190463#8.8,24.0178169,37.7246609","x":24.0145872,"y":37.6941919,"coor":[[24.014587,37.6749596],[24.014587,37.6752571],[24.0148366,37.675879],[24.0151089,37.6762575],[24.0155966,37.6767081],[24.0156874,37.6772038],[24.0155893,37.6774765],[24.015646,37.6775666],[24.0154193,37.6778641],[24.014875,37.6783329],[24.0148751,37.6784771],[24.0150041,37.6786168],[24.0156576,37.6788555],[24.0163047,37.6788081],[24.0168151,37.6788621],[24.0173935,37.6791054],[24.0189813,37.6794296],[24.0191854,37.6795558],[24.0195031,37.6798983],[24.0195825,37.6800425],[24.0195712,37.6802047],[24.0193104,37.6805563],[24.0187434,37.6806645],[24.0185734,37.6808809],[24.0182332,37.6810251],[24.0178817,37.6813316],[24.0176096,37.6816562],[24.017621,37.6819716],[24.0173376,37.6823232],[24.0168272,37.6824404],[24.0163055,37.6824135],[24.0158407,37.6828642],[24.0156592,37.6829724],[24.0154891,37.6829904],[24.0150809,37.6832181],[24.0151716,37.6834704],[24.0153758,37.6835425],[24.0157387,37.6835064],[24.0163285,37.6835874],[24.0172925,37.6835062],[24.017576,37.6836864],[24.0186875,37.6839206],[24.0189151,37.6841008],[24.0190052,37.6841729],[24.0190846,37.6843442],[24.0195951,37.6847497],[24.0196178,37.6851282],[24.0199696,37.6856329],[24.0200955,37.686025],[24.0201977,37.6864937],[24.0201524,37.6866739],[24.0194266,37.6869805],[24.0191998,37.6869986],[24.0186099,37.6867914],[24.018349,37.6865841],[24.0181562,37.6863227],[24.0180541,37.6863408],[24.0178386,37.6865752],[24.0174297,37.6866744],[24.0171575,37.6867826],[24.016545,37.6868007],[24.0163523,37.687035],[24.016375,37.6871072],[24.0168741,37.6875037],[24.0173275,37.6877199],[24.0177019,37.6881345],[24.0178494,37.6886032],[24.0174865,37.6888826],[24.0172257,37.6892342],[24.0168175,37.6896128],[24.0166056,37.6897503],[24.0162653,37.6897774],[24.0158002,37.689507],[24.0151537,37.689462],[24.0148904,37.6895455],[24.0148414,37.68939],[24.0143424,37.6891737],[24.0141608,37.6888943],[24.0140474,37.6888403],[24.0140589,37.6894442],[24.0139005,37.6900436],[24.0136624,37.6906114],[24.0135945,37.6910711],[24.0138895,37.6918552],[24.0145022,37.6930359],[24.0144737,37.6938584],[24.0145872,37.6941919],[24.0148542,37.6946042],[24.0149123,37.6946628],[24.0154229,37.6950953],[24.016217,37.6955639],[24.0173326,37.6959085],[24.0174914,37.6960324],[24.0174766,37.696206],[24.0173302,37.6964809],[24.0173771,37.6967468],[24.0174324,37.6970577],[24.0174793,37.6972853],[24.0178992,37.6981685],[24.0185346,37.6986552],[24.018546,37.6989796],[24.0186801,37.6995024],[24.0184207,37.6996692],[24.0183072,37.6996692],[24.0180917,37.699507],[24.0179556,37.6997774],[24.0177287,37.6997594],[24.0175586,37.6998766],[24.0175192,37.6995319],[24.0173387,37.6994553],[24.0168397,37.6998339],[24.0151382,37.7002578],[24.0144804,37.7007265],[24.0140947,37.7009068],[24.0134595,37.7010872],[24.0129263,37.7010872],[24.0121208,37.7007088],[24.011353,37.7009274],[24.0105373,37.7011213],[24.0099702,37.7011844],[24.0096061,37.7013422],[24.0096689,37.7015225],[24.0099185,37.7018109],[24.010032,37.7021534],[24.0099866,37.7024508],[24.0100548,37.7028474],[24.0098733,37.7034423],[24.0098844,37.7038073],[24.0095668,37.704231],[24.0085232,37.704853],[24.0081035,37.7057093],[24.007525,37.7059256],[24.0070077,37.7062141],[24.0075297,37.7069712],[24.0080856,37.7076111],[24.008308,37.7080302],[24.0084214,37.7082645],[24.0090342,37.7089314],[24.0098736,37.7105177],[24.0104523,37.7111486],[24.0106654,37.7116601],[24.0108697,37.7120747],[24.010762,37.7128859],[24.0107394,37.7132374],[24.0108582,37.7135484],[24.0111816,37.7138953],[24.011522,37.7142288],[24.0120781,37.7150489],[24.0129547,37.7154116],[24.0143277,37.7160965],[24.0148383,37.716484],[24.0147749,37.7165381],[24.0140717,37.7180073],[24.0139324,37.7181516],[24.0138416,37.7182327],[24.0141583,37.7184264],[24.0145215,37.7190033],[24.0145329,37.7192827],[24.014272,37.7197334],[24.0144877,37.720166],[24.0145332,37.720851],[24.0146833,37.7212768],[24.0150465,37.7217996],[24.0156933,37.7221059],[24.0158636,37.7222862],[24.0160845,37.7224371],[24.0163463,37.7227007],[24.0169372,37.7233406],[24.0168351,37.7236651],[24.017587,37.7240255],[24.017553,37.7242869],[24.0176211,37.7244942],[24.0178169,37.7246609]]},{"id":15831,"author":"AnaDigit","name_GR":"\u039b\u03b1\u03cd\u03c1\u03b9\u03bf: \u039b\u03b1\u03cd\u03c1\u03b9\u03bf-\u039a\u03b1\u03bc\u03ac\u03c1\u03b9\u03b6\u03b1","description_GR":"\u03a3\u03c4\u03b1 \u03b1\u03c1\u03c7\u03b1\u03af\u03b1 \u03bc\u03b5\u03c4\u03b1\u03bb\u03bb\u03b5\u03af\u03b1 \u03c4\u03bf\u03c5 \u039b\u03b1\u03c5\u03c1\u03af\u03bf\u03c5","path":"Attiki\/Attiki_Lavrio_Kamariza_Lavrio","activity_type":32,"assistance":2,"difficulty":1,"scenic_value":4,"length":8417,"name_EN":"Lavrio: Lavrio-Kamariza","description_EN":"Along the ancient mines","ascent_time":155,"descent_time":150,"marker":"No_marks","level":9,"ascent":232,"descent":232,"maxelev":216,"minelev":8,"link_logo":"","link_ref":"","pdf_link":"","bbox":"LINESTRING(24.02085 37.71281,24.05227 37.72231)","views":44,"millestones":"0,24.0522731,37.7223004#1,24.0419453,37.7204134#2,24.0413514,37.7153273#3,24.0339687,37.7152839#4,24.0239162,37.7177558#5,24.0224619,37.7213225#6,24.0293326,37.7183862#7,24.0379367,37.7194238#8,24.0488015,37.7204847#8.4,24.0522741,37.7222982","x":24.0217583,"y":37.7183712,"coor":[[24.0522731,37.7223004],[24.0516296,37.7219086],[24.0513345,37.7218344],[24.0507784,37.7217085],[24.0502762,37.7210845],[24.0500254,37.7208683],[24.0497075,37.7206792],[24.0490415,37.7205172],[24.0488972,37.7204992],[24.0482958,37.7204544],[24.0473143,37.7205359],[24.0466447,37.7203109],[24.046293,37.7203921],[24.0434951,37.7206861],[24.0428096,37.7206368],[24.0423898,37.7205558],[24.0407328,37.7200246],[24.040347,37.7199977],[24.0397116,37.72007],[24.0390663,37.7200162],[24.0381242,37.7195208],[24.0383635,37.7194238],[24.0394755,37.7194595],[24.0398045,37.7193151],[24.0399405,37.7190808],[24.0399627,37.7181524],[24.0399703,37.7178302],[24.0402652,37.7176227],[24.0406167,37.71719],[24.0405484,37.7167551],[24.0406561,37.7164779],[24.0409962,37.7160632],[24.0415777,37.7148282],[24.0414833,37.714675],[24.0414492,37.7144226],[24.04171,37.7141251],[24.0417552,37.7139448],[24.0416417,37.7138006],[24.0413126,37.7136025],[24.0410778,37.7134651],[24.0407146,37.7133661],[24.0394892,37.7132313],[24.039319,37.7131502],[24.0389919,37.7128123],[24.0380868,37.7128577],[24.0378372,37.713011],[24.0354572,37.7139536],[24.0350355,37.7143008],[24.034752,37.7148236],[24.0344571,37.715022],[24.033595,37.7154819],[24.0331526,37.7156353],[24.0328463,37.7156714],[24.0324493,37.7159239],[24.031848,37.7161584],[24.0312921,37.7162126],[24.0311106,37.7163028],[24.0310628,37.716411],[24.0309131,37.716251],[24.0301074,37.7159718],[24.0295401,37.7161703],[24.0290864,37.7164768],[24.0288596,37.7167293],[24.0284739,37.7169547],[24.028247,37.7169908],[24.0280768,37.7169548],[24.0275095,37.7171622],[24.0264998,37.7173247],[24.0255467,37.7174331],[24.0253425,37.71737],[24.0250361,37.7173791],[24.0240831,37.7176136],[24.0238335,37.71783],[24.0234251,37.7179022],[24.0231673,37.7179068],[24.022895,37.7179969],[24.0224937,37.7182426],[24.0226793,37.7176545],[24.0225545,37.7177266],[24.0224637,37.7175464],[24.0220665,37.7171859],[24.021953,37.717231],[24.0217581,37.717533],[24.0218944,37.7178755],[24.0216222,37.7183622],[24.0216449,37.7184343],[24.0217583,37.7183712],[24.021645,37.7186416],[24.0216677,37.718921],[24.0214975,37.7189301],[24.021282,37.7190383],[24.0211572,37.7191555],[24.0211232,37.7193267],[24.0211573,37.7194619],[24.0213729,37.7195701],[24.0214049,37.7197796],[24.0210815,37.7198653],[24.0208522,37.7200343],[24.0208749,37.7200907],[24.0212439,37.7209536],[24.0214142,37.7211879],[24.0212919,37.7214245],[24.0220837,37.7215573],[24.0225375,37.7212779],[24.0225148,37.7211787],[24.0226123,37.7210638],[24.0229753,37.7207753],[24.0229979,37.7205409],[24.0229071,37.7205409],[24.0228277,37.7204148],[24.0223184,37.7201738],[24.0222457,37.7200025],[24.0224953,37.7200385],[24.0227336,37.7199393],[24.0230287,37.7202187],[24.0237094,37.7201104],[24.023891,37.7201644],[24.0241178,37.7197678],[24.0245036,37.7198669],[24.0248781,37.7197767],[24.0251389,37.7192538],[24.0253431,37.7193079],[24.0255246,37.7192267],[24.0258991,37.7193168],[24.0266592,37.7190282],[24.027011,37.7190281],[24.0273739,37.7185954],[24.0279525,37.718433],[24.0280433,37.7185051],[24.0282362,37.7185141],[24.0283497,37.7184149],[24.0283156,37.7183338],[24.0283723,37.7182797],[24.0285198,37.7182977],[24.0291211,37.7181353],[24.0292903,37.7183538],[24.0304934,37.7192729],[24.0303914,37.7195793],[24.0306524,37.719417],[24.030902,37.7193989],[24.0311265,37.7195251],[24.0311936,37.7197729],[24.0323849,37.7195653],[24.0329747,37.7190964],[24.0331675,37.7187651],[24.033156,37.7183956],[24.0333261,37.7183054],[24.0345859,37.7189089],[24.0356185,37.7189627],[24.037012,37.7189871],[24.037124,37.7190208],[24.0381253,37.7195185],[24.0390673,37.7200139],[24.0397131,37.7200655],[24.0403484,37.7199932],[24.0407342,37.7200201],[24.0423912,37.7205513],[24.0428111,37.7206323],[24.0434962,37.7206816],[24.0462944,37.7203876],[24.0466461,37.7203064],[24.0473157,37.7205314],[24.0482972,37.7204499],[24.0488986,37.7204947],[24.0490426,37.7205149],[24.0497086,37.7206769],[24.0500264,37.720866],[24.0502776,37.7210823],[24.0507794,37.7217062],[24.0513355,37.7218322],[24.0516306,37.7219064],[24.0522741,37.7222982]]},{"id":15832,"author":"AnaDigit","name_GR":"\u039b\u03b1\u03cd\u03c1\u03b9\u03bf: \u03a3\u03c4\u03bf \u03b1\u03c1\u03c7\u03b1\u03af\u03bf \u0398\u03bf\u03c1\u03b9\u03ba\u03cc","description_GR":"\u0391\u03c1\u03c7\u03b1\u03af\u03b1 \u03b8\u03ad\u03b1\u03c4\u03c1\u03bf, \u03bd\u03b5\u03ba\u03c1\u03bf\u03c4\u03b1\u03c6\u03b5\u03af\u03bf, \u03c0\u03cc\u03bb\u03b7 \u03ba\u03b1\u03b9 \u03b1\u03ba\u03c1\u03cc\u03c0\u03bf\u03bb\u03b7 \u0398\u03bf\u03c1\u03b9\u03ba\u03bf\u03cd","path":"Attiki\/Attiki_Lavrio_Thoriko_loop","activity_type":32,"assistance":2,"difficulty":1,"scenic_value":4,"length":3932,"name_EN":"Lavrio: Around ancient Thoriko","description_EN":"Along the ancient theater, cemetery, city and acropolis of Thoriko","ascent_time":75,"descent_time":75,"marker":"No_marks","level":9,"ascent":139,"descent":139,"maxelev":126,"minelev":1,"link_logo":"","link_ref":"","pdf_link":"","bbox":"LINESTRING(24.05183 37.73585,24.06237 37.74267)","views":19,"millestones":"0,24.0546298,37.7358508#1,24.0521272,37.7385913#2,24.0560998,37.7426081#3,24.0620293,37.7410240#3.9,24.0546319,37.7358508","x":24.0559935,"y":37.7397439,"coor":[[24.0546298,37.7358508],[24.0541954,37.7364346],[24.0542651,37.7367703],[24.0542084,37.7367884],[24.0541519,37.737176],[24.05405,37.7374645],[24.0537098,37.7378522],[24.0533761,37.7380011],[24.0532399,37.7378749],[24.0531445,37.7379088],[24.0531367,37.7379764],[24.0528757,37.7380126],[24.0526202,37.7378437],[24.0526051,37.7375102],[24.052832,37.7373388],[24.0534892,37.7374422],[24.054153,37.737176],[24.0542095,37.7367884],[24.0542662,37.7367703],[24.0541968,37.7364346],[24.053751,37.7369306],[24.0534674,37.737111],[24.0530362,37.7372373],[24.0525595,37.7372285],[24.052378,37.7373007],[24.0520833,37.7378957],[24.0519358,37.738022],[24.0520847,37.7384005],[24.0521758,37.7388173],[24.0523461,37.7389254],[24.0521873,37.7389885],[24.0521274,37.7390922],[24.0518231,37.7391374],[24.0521274,37.7390922],[24.0524452,37.7391101],[24.0528083,37.7389477],[24.0532169,37.7390557],[24.0535119,37.7389294],[24.0538184,37.7388842],[24.0542952,37.7391183],[24.0545789,37.739046],[24.0548854,37.739127],[24.0552826,37.7390187],[24.0555323,37.7390456],[24.0557253,37.7390996],[24.0559524,37.7392978],[24.0561069,37.7395456],[24.0559594,37.7396718],[24.0559935,37.7397439],[24.0557326,37.7399063],[24.0555399,37.7401768],[24.0552789,37.740249],[24.0548138,37.7406818],[24.0548253,37.7408711],[24.0550867,37.7412766],[24.0553603,37.7415333],[24.0554741,37.7418217],[24.0556558,37.7420289],[24.0557275,37.7421123],[24.0556367,37.7421484],[24.0556482,37.7423467],[24.055849,37.7423826],[24.055747,37.7425719],[24.0558152,37.742662],[24.0559627,37.742671],[24.0561556,37.7425808],[24.0559966,37.7423735],[24.0560192,37.7422744],[24.0559159,37.7420942],[24.055918,37.7420649],[24.0559601,37.742031],[24.0563913,37.7418145],[24.0573215,37.7411471],[24.0575913,37.7409802],[24.0577672,37.7409598],[24.0578694,37.7410499],[24.0578582,37.7411941],[24.0573251,37.7417352],[24.0571097,37.7420778],[24.057178,37.742231],[24.0576175,37.7422736],[24.0578104,37.7422104],[24.0581393,37.7419399],[24.0583322,37.7418857],[24.0593992,37.7419392],[24.0605117,37.7422361],[24.060818,37.7420376],[24.0623746,37.7414622],[24.0617348,37.7406581],[24.0609737,37.7398113],[24.0594973,37.7387485],[24.0589976,37.7383161],[24.0581227,37.7370186],[24.0574414,37.7365683],[24.0567262,37.7363704],[24.0548501,37.7359183],[24.0546319,37.7358508]]},{"id":15833,"author":"AnaDigit","name_GR":"\u039b\u03b1\u03cd\u03c1\u03b9\u03bf: \u03a3\u03c4\u03bf \u0392\u03b1\u03b8\u03cd \u03a3\u03c0\u03bb\u03b7\u03b8\u03ac\u03c1\u03b9","description_GR":"\u0394\u03b9\u03ac\u03c3\u03c7\u03b9\u03c3\u03b7 \u03b1\u03c0\u03cc \u03c4\u03b7\u03bd \u03a4\u03c1\u03b9\u03b1\u03bd\u03c4\u03b1\u03c6\u03c5\u03bb\u03bb\u03b9\u03ac \u03c3\u03c4\u03bf\u03bd \u03a7\u03ac\u03c1\u03b1\u03ba\u03b1","path":"Attiki\/Attiki_Lavrio_Triantafyllia_Charakas","activity_type":32,"assistance":1,"difficulty":3,"scenic_value":4,"length":2788,"name_EN":"Lavrio: Vathy Splithari ravine","description_EN":"Crossing from Triantafyllia to Charakas","ascent_time":70,"descent_time":70,"marker":"No_marks","level":9,"ascent":43,"descent":197,"maxelev":177,"minelev":11,"link_logo":"","link_ref":"","pdf_link":"","bbox":"LINESTRING(23.96388 37.66877,23.96856 37.68613)","views":25,"millestones":"0,23.9658087,37.6861254#1,23.9667538,37.6801105#2,23.9676103,37.6744478#2.8,23.9650116,37.6687677","x":23.9669085,"y":37.679093,"coor":[[23.9658087,37.6861254],[23.9650728,37.6855979],[23.964762,37.685555],[23.9643551,37.6857058],[23.964762,37.685555],[23.9646828,37.6853116],[23.9643199,37.6851763],[23.9639798,37.6848697],[23.9640139,37.6845993],[23.963878,37.6842388],[23.9638896,37.6838242],[23.9646156,37.6835179],[23.9647745,37.6831845],[23.9651376,37.6828601],[23.9659429,37.6827161],[23.9662151,37.6826261],[23.9663853,37.6824639],[23.9666691,37.6817249],[23.9664197,37.6815626],[23.9663177,37.6813282],[23.9664086,37.6810939],[23.9666695,37.6809858],[23.9667716,37.6808776],[23.966681,37.6806252],[23.9666811,37.6803819],[23.9668174,37.6798591],[23.9672144,37.67967],[23.9672712,37.6793996],[23.9672372,37.6793004],[23.9669085,37.679093],[23.9663414,37.679192],[23.9660012,37.6791198],[23.9659445,37.6790026],[23.9660014,37.6786962],[23.9659108,37.6784889],[23.9656387,37.6782725],[23.9653099,37.6781912],[23.9651852,37.678074],[23.9652533,37.6779569],[23.9656163,37.6777226],[23.9656276,37.6776325],[23.9649134,37.6772627],[23.965061,37.67674],[23.9649932,37.6763434],[23.9650932,37.6761947],[23.9653984,37.6760641],[23.9654891,37.675956],[23.9654485,37.6758163],[23.9652105,37.6753295],[23.9659283,37.6751156],[23.9664454,37.6748792],[23.9685539,37.6740888],[23.9675205,37.672509],[23.9669765,37.6718013],[23.966376,37.6709065],[23.965831,37.6700568],[23.9655374,37.6696128],[23.9652712,37.6691982],[23.9650116,37.6687677]]},{"id":16133,"author":"AnaDigit","name_GR":"\u039b\u03b1\u03c5\u03c1\u03b5\u03c9\u03c4\u03b9\u03ba\u03ae: \u03a3\u03c4\u03bf\u03c5\u03c2 \u03bf\u03c6\u03b9\u03cc\u03bb\u03b9\u03b8\u03bf\u03c5\u03c2 \u03c4\u03bf\u03c5 \u039b\u03b1\u03c5\u03c1\u03af\u03bf\u03c5","description_GR":"\u0393\u03b5\u03c9\u03b4\u03b9\u03b1\u03b4\u03c1\u03bf\u03bc\u03ae 8 \u03c4\u03bf\u03c5 \u0399\u0393\u039c\u0395","path":"Geology\/GEO_Lavrio_AnoSounio_Sounio","activity_type":71,"assistance":1,"difficulty":2,"scenic_value":4,"length":2767,"name_EN":"Lavrion: Along the ophiolites of Lavrion area","description_EN":"Georoute 8 (IGME)","ascent_time":120,"descent_time":110,"marker":"No_marks","level":9,"ascent":85,"descent":237,"maxelev":249,"minelev":22,"link_logo":"","link_ref":"","pdf_link":"","bbox":"LINESTRING(24.01564 37.65831,24.02865 37.67367)","views":33,"millestones":"0,24.0157820,37.6736368#1,24.0234763,37.6686676#2.8,24.0286489,37.6583567","x":24.0256328,"y":37.6668976,"coor":[[24.015782,37.6736368],[24.0157016,37.6736683],[24.0156448,37.6735602],[24.0164498,37.6729922],[24.0169973,37.6727082],[24.0171627,37.6726181],[24.0179337,37.6720772],[24.0187274,37.6720049],[24.0189032,37.6719779],[24.0192207,37.6719237],[24.0196516,37.6718155],[24.0198829,37.6716307],[24.0199148,37.6715924],[24.0199375,37.6718087],[24.020187,37.6717185],[24.0202436,37.6716464],[24.0201833,37.6714459],[24.0203194,37.6712475],[24.0207389,37.6710312],[24.0213397,37.6705263],[24.0216833,37.6700237],[24.0217512,37.6697353],[24.0220687,37.6696541],[24.022148,37.6693657],[24.0227577,37.6688698],[24.0233451,37.6687255],[24.0246603,37.6681484],[24.025091,37.6677156],[24.0252609,37.6672109],[24.0253268,37.6670599],[24.0256328,37.6668976],[24.0254817,37.6663658],[24.0253116,37.6662577],[24.0250961,37.6659332],[24.0248579,37.6658161],[24.0248579,37.6656539],[24.0242342,37.6655008],[24.0241548,37.6653386],[24.0239733,37.6652034],[24.0239052,37.6650051],[24.0232906,37.6644825],[24.0229957,37.6640409],[24.023075,37.6637344],[24.0230249,37.6633018],[24.0239762,37.6631844],[24.0248831,37.6628597],[24.0255748,37.6628416],[24.0268534,37.6624762],[24.0269542,37.6621878],[24.0266289,37.6619873],[24.0264814,37.6615908],[24.026422,37.6611626],[24.0265123,37.6599098],[24.0274396,37.6591344],[24.0278259,37.658589],[24.0280639,37.6583366],[24.0281659,37.6583365],[24.028336,37.6584447],[24.0284968,37.6583049],[24.0286489,37.6583567]]},{"id":18847,"author":"AnaDigit","name_GR":"\u039b\u03b1\u03cd\u03c1\u03b9\u03bf: \u03a3\u03c4\u03b7 \u03c7\u03b5\u03c1\u03c3\u03cc\u03bd\u03b7\u03c3\u03bf \u03c4\u03bf\u03c5 \u0391\u03b3\u03af\u03bf\u03c5 \u039d\u03b9\u03ba\u03bf\u03bb\u03ac\u03bf\u03c5","description_GR":"\u03a3\u03c4\u03bf \u03b1\u03c1\u03c7\u03b1\u03af\u03bf \u03c4\u03bf\u03c0\u03af\u03bf \u03c4\u03bf\u03c5 \u0398\u03bf\u03c1\u03b9\u03ba\u03bf\u03cd","path":"ATTIKI\/Attiki_Lavrio_AgNikolaos_peninsula","activity_type":32,"assistance":2,"difficulty":1,"scenic_value":4,"length":1632,"name_EN":"Lavrio: Agios Nikolaos peninsula","description_EN":"The ancient landscape of Thoriko","ascent_time":30,"descent_time":30,"marker":"No_marks","level":9,"ascent":30,"descent":30,"maxelev":19,"minelev":0,"link_logo":"","link_ref":"","pdf_link":"","bbox":"LINESTRING(24.06576 37.73518,24.07043 37.73984)","views":4,"millestones":"0,24.0658104,37.7389074#1,24.0694152,37.7355363#1.6,24.0658093,37.7389074","x":24.0701286,"y":37.7374537,"coor":[[24.0658104,37.7389074],[24.0657563,37.7391147],[24.0661087,37.7397815],[24.0663811,37.7397633],[24.0664786,37.7396979],[24.0667396,37.7396707],[24.066853,37.7395805],[24.0669552,37.7396075],[24.0670346,37.7395444],[24.0675339,37.7394269],[24.0680688,37.739839],[24.0684772,37.7397125],[24.0689535,37.7392796],[24.069532,37.7389097],[24.0696227,37.7387655],[24.0697475,37.7387203],[24.0697474,37.7386302],[24.0698836,37.7386481],[24.0697731,37.7380443],[24.0699293,37.7378369],[24.0698952,37.7377468],[24.0701061,37.737652],[24.0701286,37.7374537],[24.0704346,37.7369759],[24.0701841,37.7360927],[24.0702948,37.7353941],[24.0695006,37.7356199],[24.0691406,37.7352619],[24.0687589,37.7351787],[24.0686345,37.7355934],[24.068385,37.7358639],[24.0684332,37.7361275],[24.0683049,37.7362718],[24.0682009,37.7366166],[24.0682013,37.7370583],[24.0681819,37.7370898],[24.0681366,37.7372341],[24.0681212,37.7374775],[24.0680305,37.7375767],[24.0678149,37.7375858],[24.0667825,37.7381001],[24.0664499,37.7382017],[24.0665976,37.7383729],[24.0661007,37.7387089],[24.0658093,37.7389074]]},{"id":18848,"author":"AnaDigit","name_GR":"\u039b\u03b1\u03cd\u03c1\u03b9\u03bf: \u0391\u03c1\u03c7\u03b1\u03af\u03b1 \u03bc\u03b5\u03c4\u03b1\u03bb\u03bb\u03b5\u03c5\u03c4\u03b9\u03ba\u03ac \u03b5\u03c1\u03b3\u03b1\u03c3\u03c4\u03ae\u03c1\u03b9\u03b1","description_GR":"\u03a3\u03c4\u03b1 \u03b1\u03c1\u03c7\u03b1\u03af\u03b1 \u03bc\u03b5\u03c4\u03b1\u03bb\u03bb\u03b5\u03af\u03b1 \u03c4\u03bf\u03c5 \u039b\u03b1\u03c5\u03c1\u03af\u03bf\u03c5","path":"ATTIKI\/Attiki_Lavrio_ancient_workshops","activity_type":32,"assistance":2,"difficulty":1,"scenic_value":4,"length":2670,"name_EN":"Lavrio: Ancient ore workshops","description_EN":"Along the ancient mines","ascent_time":50,"descent_time":50,"marker":"No_marks","level":9,"ascent":100,"descent":100,"maxelev":184,"minelev":100,"link_logo":"","link_ref":"","pdf_link":"","bbox":"LINESTRING(24.01212 37.69392,24.01868 37.70109)","views":3,"millestones":"0,24.0148471,37.6945974#1,24.0137481,37.6992500#2,24.0185507,37.6990168#2.7,24.0148471,37.6945974","x":24.0132544,"y":37.7000777,"coor":[[24.0148471,37.6945974],[24.0142233,37.6948769],[24.0141066,37.6946178],[24.0140613,37.6946448],[24.0137436,37.6944736],[24.013528,37.694041],[24.0130913,37.6939171],[24.0125242,37.6941335],[24.0124221,37.6943138],[24.0124222,37.6944941],[24.0124222,37.6945211],[24.0124676,37.6950889],[24.0126152,37.6954495],[24.0125967,37.6955396],[24.0123586,37.6957379],[24.0122679,37.6961345],[24.0122793,37.696459],[24.0123928,37.6966753],[24.0123021,37.6970088],[24.0124439,37.6970538],[24.0126141,37.6972882],[24.0127162,37.6973242],[24.0131585,37.6973422],[24.0135782,37.697261],[24.0139118,37.6974187],[24.0138665,37.6977162],[24.01398,37.6977973],[24.0139233,37.6979415],[24.0140821,37.6982299],[24.0140595,37.6983561],[24.0137873,37.6986536],[24.0137307,37.6994107],[24.0132544,37.7000777],[24.0130049,37.7002941],[24.0124718,37.7006006],[24.0121201,37.7007088],[24.0129256,37.7010872],[24.0134588,37.7010872],[24.014094,37.7009068],[24.0144796,37.7007265],[24.0151375,37.7002578],[24.016839,37.6998339],[24.017338,37.6994553],[24.0175185,37.6995319],[24.0175582,37.6998744],[24.0177284,37.6997572],[24.0179552,37.6997752],[24.0180913,37.6995047],[24.0183069,37.6996669],[24.0184203,37.6996669],[24.0186801,37.6995001],[24.018546,37.6989774],[24.0185346,37.6986529],[24.0178992,37.6981663],[24.0174793,37.697283],[24.0174328,37.6970577],[24.0173306,37.6964809],[24.0174769,37.696206],[24.0174971,37.6960347],[24.0173439,37.6958995],[24.0162177,37.6955617],[24.0154236,37.6950931],[24.014913,37.6946605],[24.0148471,37.6945974]]},{"id":18849,"author":"AnaDigit","name_GR":"\u0391\u03c4\u03c4\u03b9\u03ba\u03ae: \u039b\u03b1\u03c5\u03c1\u03b5\u03c9\u03c4\u03b9\u03ba\u03ae, \u039b\u03b5\u03b3\u03c1\u03b5\u03bd\u03ac-\u03a0\u03c1\u03bf\u03c6\u03ae\u03c4\u03b7\u03c2 \u0397\u03bb\u03af\u03b1\u03c2","description_GR":"\u03a0\u03bf\u03c1\u03b5\u03af\u03b1 \u03bc\u03b5 \u03bc\u03b5\u03b3\u03ac\u03bb\u03b7 \u03c0\u03bf\u03b9\u03ba\u03b9\u03bb\u03af\u03b1 \u03c4\u03bf\u03c0\u03af\u03c9\u03bd","path":"ATTIKI\/Attiki_Lavrio_Legrena_PrfIlias","activity_type":32,"assistance":1,"difficulty":2,"scenic_value":4,"length":6406,"name_EN":"Attica: Lavrion area, Legrena-Profitis Ilias","description_EN":"A hike crossing an important variety of landscapes","ascent_time":165,"descent_time":150,"marker":"No_marks","level":9,"ascent":417,"descent":92,"maxelev":340,"minelev":15,"link_logo":"","link_ref":"","pdf_link":"","bbox":"LINESTRING(23.97326 37.66975,23.9975 37.6991)","views":16,"millestones":"0,23.9964302,37.6697553#1,23.9939367,37.6763704#2,23.9972144,37.6833096#3,23.9910152,37.6879255#4,23.9857237,37.6937907#5,23.9796075,37.6981915#6,23.9756934,37.6952789#6.4,23.9789610,37.6940467","x":23.9910862,"y":37.6877704,"coor":[[23.9964302,37.6697553],[23.9964086,37.6699085],[23.9963384,37.6702285],[23.996191,37.6706183],[23.9958054,37.6711681],[23.9950672,37.6716976],[23.9943301,37.6723826],[23.9939786,37.6725358],[23.9935023,37.6726349],[23.992611,37.6731126],[23.9927878,37.6736173],[23.9929239,37.6738066],[23.9929125,37.6741672],[23.9930259,37.6744556],[23.9929805,37.6746178],[23.9926687,37.6746449],[23.9925981,37.6747147],[23.992428,37.6748048],[23.9924507,37.6750933],[23.9932558,37.675553],[23.9934145,37.675562],[23.9935506,37.6761208],[23.9938794,37.6763462],[23.9944691,37.6765986],[23.9947752,37.676887],[23.9948071,37.6770718],[23.9949659,37.6773152],[23.9948865,37.6775495],[23.9948978,37.6779551],[23.9947844,37.6781354],[23.994773,37.6782841],[23.9947411,37.6784306],[23.9949112,37.6790345],[23.9948318,37.6792778],[23.9946049,37.6795392],[23.994673,37.6797285],[23.9946616,37.6802332],[23.994809,37.6806839],[23.9947522,37.6813599],[23.9946615,37.6816123],[23.9948543,37.6818917],[23.9949676,37.6824145],[23.9951491,37.6826038],[23.9951264,37.682766],[23.9952625,37.6829283],[23.9952511,37.6830905],[23.995614,37.6833001],[23.9967255,37.6833993],[23.997379,37.6832821],[23.9975038,37.6834984],[23.9974924,37.6837959],[23.9969707,37.6840032],[23.9965511,37.6840302],[23.9964263,37.6841023],[23.996517,37.6845259],[23.9960406,37.6853551],[23.9960973,37.685977],[23.9959612,37.6861573],[23.9957138,37.6862317],[23.9954189,37.6862497],[23.9949539,37.686502],[23.9948178,37.6868085],[23.9945683,37.6869347],[23.9947564,37.6871307],[23.9945523,37.6874101],[23.993747,37.6877796],[23.9936222,37.6879689],[23.9931901,37.6880117],[23.9927591,37.6879576],[23.9925437,37.6877953],[23.9922488,37.6877232],[23.9916966,37.6877524],[23.9912507,37.6877231],[23.9910862,37.6877704],[23.9909387,37.6880859],[23.9909387,37.6884825],[23.9907685,37.6887889],[23.9902241,37.6891494],[23.9899746,37.6890773],[23.989691,37.6891313],[23.989513,37.6892327],[23.9889912,37.6896833],[23.9893655,37.6901971],[23.9893881,37.6907019],[23.98932,37.690765],[23.9889344,37.690846],[23.9883899,37.6911254],[23.9881176,37.6913327],[23.9882536,37.6923963],[23.9877658,37.6927748],[23.9874368,37.6928829],[23.9869831,37.6927567],[23.9866882,37.6927747],[23.9865181,37.6928197],[23.986299,37.6930315],[23.9860381,37.6932838],[23.9861741,37.6935543],[23.9861174,37.6936624],[23.9858678,37.6937705],[23.9852553,37.6938606],[23.9849377,37.6938606],[23.9839747,37.6932565],[23.9832581,37.6931032],[23.983141,37.6935178],[23.9835946,37.6939235],[23.9836173,37.6941398],[23.983708,37.6942209],[23.9836286,37.694293],[23.9835037,37.6947527],[23.9832654,37.6950411],[23.9832313,37.6953656],[23.9830611,37.6955458],[23.9830044,37.6957621],[23.9827207,37.6960054],[23.9825391,37.6965011],[23.9817791,37.6968075],[23.9815635,37.6968165],[23.9807012,37.6976095],[23.9799524,37.6981772],[23.9795441,37.6981952],[23.978818,37.6984835],[23.9782735,37.6985194],[23.9781033,37.6986005],[23.9778732,37.6989137],[23.9775612,37.6991006],[23.9773741,37.6986973],[23.9771133,37.6984629],[23.9742141,37.6970832],[23.9739955,37.6967519],[23.9736281,37.6962088],[23.9735374,37.6960826],[23.9732596,37.6957603],[23.9733164,37.6955891],[23.9740991,37.695445],[23.9750632,37.6954002],[23.9756078,37.6952921],[23.9757201,37.6952741],[23.9761092,37.6947041],[23.9767104,37.694578],[23.9768919,37.6944789],[23.9773276,37.6941726],[23.9778246,37.6940149],[23.9782103,37.694042],[23.9784372,37.6939249],[23.9786254,37.6938934],[23.9789203,37.6939205],[23.978961,37.6940467]]}],{"extent":[23.96388,37.65831,24.07043,37.74267],"advPath":"http:\/\/www.topoguide.gr\/adventure.php?l=el&ul=1&a=","style":{"default":{"color":"#ff612f","width":6,"action":{"type":"openurl"},"sort":{"type":"none"}},"Islands\/Islands_Zakynthos_Kalamaki_Skopiotisa":{"url":"http:\/\/www.topoguide.gr\/hiking_in_zakynthos.php#test","color":"#ff612f","width":5,"exclude":false,"useStyle":true},"Islands\/Islands_Zakynthos_Kiliomeno_Pandokratoras":{"url":null,"color":"#2f2fff","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Zakynthos_Yperaghathos_Loucha":{"url":null,"color":"#1d950d","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Zakynthos_Volima_AgAndreas":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":false},"ISLANDS\/Islands_Zakynthos_Vassilikos":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":false},"ISLANDS\/Islands_Zakynthos_Prodromos_Kalithea":{"url":null,"color":"#1d950d","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Zakynthos_Loucha_Kalithea":{"url":null,"color":"#1d950d","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Zakynthos_Klima_Schinari":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":false},"ISLANDS\/Islands_Zakynthos_Kiliomeno_Yperaghathos":{"url":null,"color":"#1d950d","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Zakynthos_Keri_ParaliaKeriou2":{"url":"#advlist","color":"#2f2fff","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Zakynthos_Keri_ParaliaKeriou":{"url":null,"color":"#1d950d","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Zakynthos_Keri_Faros":{"url":null,"color":"#2f2fff","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Zakynthos_Keri_Agalas":{"url":null,"color":"#1d950d","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Zakynthos_Kalithea_Lagopodo":{"url":null,"color":"#2f2fff","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Zakynthos_Argasi_Skopiotisa":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":false},"ISLANDS\/Islands_Zakynthos_Agalas_Kiliomenos":{"url":null,"color":"#1d950d","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Sikinos_02_Chorio_Loop":{"url":null,"color":"#08bc25","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Sikinos_01_Chorio_Alopronia":{"url":null,"color":"#ff2fc5","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Sikinos_03_Kastro_Alopronia":{"url":null,"color":"#253bdd","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Sikinos_04_Kastro_Malta":{"url":null,"color":"#2feeff","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Sikinos_05_Kastro_Loop":{"url":null,"color":"#ffd52f","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Sikinos_06_Episkopi_AgMarina":{"url":null,"color":"#2fdddd","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Sikinos_07_Kastro_Alopronia":{"url":null,"color":"#2fff2f","width":6,"exclude":false,"useStyle":true},"Islands\/Islands_Skopelos_monasteries_Loop":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":false},"ISLANDS\/Islands_Skopelos_Loutraki_Klima":{"url":null,"color":"#1ab933","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Skopelos_Loutraki_Faros_loop":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":false},"ISLANDS\/Islands_Skopelos_Loutraki_Taxiarches":{"url":null,"color":"#2f7aff","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Kefalonia_Foukalida":{"url":null,"color":"#02981a","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Kefalonia_Damoulianata_AgThekli":{"url":null,"color":"#02981a","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Kefalonia_Vilatoria_Petani":{"url":null,"color":"#02981a","width":6,"exclude":false,"useStyle":true},"Car_touring\/CAR_Kefalonia_Gerogombos":{"url":null,"color":"#f029e0","width":6,"exclude":false,"useStyle":true},"Geology\/GEO_Kefalonia_4_karst_formations":{"url":null,"color":"#fff741","width":6,"exclude":false,"useStyle":true},"Islands\/Islands_Kefalonia_Ainos":{"url":null,"color":"#02981a","width":6,"exclude":false,"useStyle":true},"Islands\/Islands_Kefalonia_Anavasi_AgDinati":{"url":null,"color":"#02981a","width":6,"exclude":false,"useStyle":true},"Islands\/Islands_Kefalonia_Fiskardo_Battery":{"url":null,"color":"#02981a","width":6,"exclude":false,"useStyle":true},"Islands\/Islands_Kefalonia_Gyro_apo_Zoodocho_Pigi":{"url":null,"color":"#02981a","width":6,"exclude":false,"useStyle":true},"Islands\/Islands_Kefalonia_Sami_Poros":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":false},"SUV_4x4\/SUV_Kefalonia_Ainos":{"url":null,"color":"#e62fff","width":6,"exclude":false,"useStyle":true},"SUV_4x4\/SUV_Kefalonia_Livadi-AgEleni_beach":{"url":null,"color":"#f72fff","width":6,"exclude":false,"useStyle":true},"GEOLOGY\/GEO_Kefalonia_Mntzavinata_formations":{"url":null,"color":"#f7ff2f","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Kefalonia_Antisamos_Fanentes":{"url":null,"color":"#02981a","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Kefalonia_Proni_acropolis":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":false},"ISLANDS\/Islands_Kefalonia_Ainos_traverse":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":false},"ISLANDS\/Islands_Kefalonia_Assos_castle":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":false},"ISLANDS\/Islands_Kefalonia_AgDinati_loop":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":false},"ISLANDS\/Islands_Kefalonia_Atros_ascent":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":false},"ISLANDS\/Islands_Kefalonia_Ainos_ridge":{"url":null,"color":"#e99429","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Kefalonia_Koutavos_loop":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":false},"ISLANDS\/Islands_Kefalonia_Sami_Fanentes":{"url":null,"color":"#3ee373","width":6,"exclude":false,"useStyle":true},"MTB_ROADBIKE\/MTB_Kalymnos_Vathys_loop":{"url":null,"color":"#e80fb4","width":6,"exclude":false,"useStyle":true},"MTB_ROADBIKE\/Roadbike_Kalymnos_Arginontas_loop":{"url":null,"color":"#e80fb4","width":6,"exclude":false,"useStyle":true},"MTB_ROADBIKE\/Roadbike_Kalymnos_Arginontas_Palionisos":{"url":null,"color":"#e80fb4","width":6,"exclude":false,"useStyle":true},"MTB_ROADBIKE\/Roadbike_Kalymnos_Arginontas_Eborios":{"url":null,"color":"#e80fb4","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Kalymnos_Trail_1":{"url":null,"color":"#0f9f14","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Kalymnos_Trail_12":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":false},"ISLANDS\/Islands_Kalymnos_Trail_8a":{"url":null,"color":"#0f9f14","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Kalymnos_Trail_10":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":false},"ISLANDS\/Islands_Kalymnos_Trail_9":{"url":null,"color":"#0f9f14","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Kalymnos_Trail_5":{"url":null,"color":"#0f9f14","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Kalymnos_Trail_16":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":false},"ISLANDS\/Islands_Kalymnos_Trail_14":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":false},"ISLANDS\/Islands_Kalymnos_Trail_4":{"url":"http:\/\/www.alternetgreece.com\/en\/activities\/hiking","color":"#ff612f","width":6,"exclude":false,"useStyle":false},"ISLANDS\/Islands_Kalymnos_Trail_17":{"url":null,"color":"#2f2fff","width":6,"exclude":false,"useStyle":true},"ISLANDS\/Islands_Kalymnos_Trail_6":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":false},"ISLANDS\/Islands_Kalymnos_Trail_3":{"url":null,"color":"#0f9f14","width":6,"exclude":false,"useStyle":true},"Thessalia\/Thessaly_Olymbos_E4_Kokkinoplos_Prionia":{"url":null,"color":"#23b10f","width":6,"exclude":false,"useStyle":true},"Thessalia\/Thessaly_Olymbos_E4_Litochoro_Prionia":{"url":null,"color":"#23b10f","width":6,"exclude":false,"useStyle":true},"Thessalia\/Thessaly_Olymbos_O2_Karya_Skolio":{"url":null,"color":"#2f2fff","width":6,"exclude":false,"useStyle":true},"Thessalia\/Thessaly_Olymbos_O2_Krania_Rapsani":{"url":null,"color":"#2f2fff","width":6,"exclude":false,"useStyle":true},"Thessalia\/Thessaly_Olymbos_O2_Rapsani_Tembi":{"url":null,"color":"#2f2fff","width":6,"exclude":false,"useStyle":true},"Thessalia\/Thessaly_Olymbos_Dion_Petrostrouga":{"url":null,"color":"#d01919","width":6,"exclude":false,"useStyle":true},"Thessalia\/Thessaly_Olymbos_Gortsia_Apostolidis":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":false},"Thessalia\/Thessaly_Olymbos_Litochoro_Livadaki_Mouses":{"url":null,"color":"#d01919","width":6,"exclude":false,"useStyle":true},"Thessalia\/Thessaly_Olymbos_Vrondou_Barbalas":{"url":null,"color":"#d01919","width":6,"exclude":false,"useStyle":true},"Sterea\/Sterea_Giona_Ascent_Pyramida":{"url":null,"color":"#0f4a96","width":6,"exclude":false,"useStyle":true},"Sterea\/Sterea_Giona_Sykia_Pyramida":{"url":null,"color":"#960f65","width":6,"exclude":false,"useStyle":true},"Sterea\/Sterea_Giona_Viniani_Reka_Giona_ref":{"url":null,"color":"#f7f70d","width":6,"exclude":false,"useStyle":true},"STEREA\/Sterea_E4_Kaloskopi_51":{"url":null,"color":"#0f962a","width":6,"exclude":false,"useStyle":true},"STEREA\/Sterea_E4_Stromi_Kaloskopi":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":false},"Sterea\/Sterea_Vardousia_Koprisies":{"url":null,"color":"#178e12","width":6,"exclude":false,"useStyle":true},"STEREA\/Sterea_E4_Diakos_Stromi":{"url":null,"color":"#502fff","width":6,"exclude":false,"useStyle":true},"STEREA\/Sterea_Vardousia_Southern_Ridge":{"url":null,"color":"#eff900","width":6,"exclude":false,"useStyle":true},"STEREA\/Sterea_Vardousia_E4_Artotina_Diakos":{"url":null,"color":"#ff2fe6","width":6,"exclude":false,"useStyle":true},"STEREA\/Sterea_Vardousia_E4_Grameni_Artotina":{"url":null,"color":"#c52fff","width":6,"exclude":false,"useStyle":true},"STEREA\/Sterea_Vardousia_Oxia_AthDiakos":{"url":null,"color":"#40ff2f","width":6,"exclude":false,"useStyle":true},"Sterea\/Sterea_Oeta_Argirochori_Abelaki":{"url":null,"color":"#f7ff2f","width":6,"exclude":false,"useStyle":true},"Sterea\/Sterea_Oeta_Argyrochori_Trapeza":{"url":null,"color":"#2f72ff","width":6,"exclude":false,"useStyle":true},"Sterea\/Sterea_Oeta_Ypati_Gersali":{"url":null,"color":"#59ff2f","width":6,"exclude":false,"useStyle":true},"Sterea\/Sterea_Oeta_Ypati_Trapeza":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":false},"Sterea\/Sterea_Oiti_Ypati_Kapnochori":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":false},"STEREA\/Sterea_Oeta_Ypati_Kastania":{"url":null,"color":"#127a2f","width":6,"exclude":false,"useStyle":true},"STEREA\/Sterea_Oeta_Trapeza_Pyrgos":{"url":null,"color":"#ff2f2f","width":6,"exclude":false,"useStyle":true},"STEREA\/Sterea_Oeta_Trapeza_Greveno":{"url":null,"color":"#f7ff2f","width":6,"exclude":false,"useStyle":true},"STEREA\/Sterea_Oeta_Katavothra_Pyrgos":{"url":null,"color":"#e62fff","width":6,"exclude":false,"useStyle":true},"STEREA\/Sterea_Oeta_Neochori_Pyrgos":{"url":null,"color":"#2fe6ff","width":6,"exclude":false,"useStyle":true},"STEREA\/Sterea_Oeta_Katavothra-Pyrgos":{"url":null,"color":"#69ff2f","width":6,"exclude":false,"useStyle":true},"STEREA\/Sterea_Kallidromo_Eleftherochori_Gioza":{"url":null,"color":"#13a713","width":6,"exclude":false,"useStyle":true},"STEREA\/Sterea_Kallidromo_Tithronio_Gioza":{"url":null,"color":"#ff2f2f","width":6,"exclude":false,"useStyle":true},"Peloponnese\/Pelop_Gortynia_Dimitsana_Radou":{"url":null,"color":"#ff612f","width":6,"exclude":true,"useStyle":false},"Peloponnese\/Pelop_Gortynia_Lasta_Valtesiniko":{"url":null,"color":"#ff612f","width":6,"exclude":true,"useStyle":false},"Peloponnese\/Pelop_Menalon_Trail_Dimitsana_Zygovisti":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":true},"PELOPONNESE\/Pelop_Magouliana_Short_loop":{"url":null,"color":"#ff612f","width":6,"exclude":true,"useStyle":false},"PELOPONNESE\/Pelop_Magouliana_Kamari_valley":{"url":null,"color":"#ff612f","width":6,"exclude":true,"useStyle":false},"PELOPONNESE\/Pelop_Arkadia_Valtesiniko_Loop":{"url":null,"color":"#ff612f","width":6,"exclude":true,"useStyle":false},"PELOPONNESE\/Pelop_Menalon_Stemnitsa_loop1":{"url":null,"color":"#ff612f","width":6,"exclude":true,"useStyle":false},"PELOPONNESE\/Pelop_Menalon_Stemnitsa_loop2":{"url":null,"color":"#ff612f","width":6,"exclude":true,"useStyle":false},"PELOPONNESE\/Pelop_Menalon_Stemnitsa_Skemna_loop":{"url":null,"color":"#ff612f","width":6,"exclude":true,"useStyle":false},"PELOPONNESE\/Pelop_Menalon_Stemnitsa_Elliniko":{"url":null,"color":"#ff612f","width":6,"exclude":true,"useStyle":false},"Peloponnese\/Pelop_Gortynia_Vytina_Lasta":{"url":null,"color":"#ff612f","width":6,"exclude":true,"useStyle":false},"Peloponnese\/Pelop_Menalon_Trail_Lousios":{"url":null,"color":"#9a2804","width":6,"exclude":false,"useStyle":true},"Peloponnese\/Pelop_Menalon_Trail_Zygovisti_Elati":{"url":null,"color":"#9a2804","width":6,"exclude":false,"useStyle":true},"Peloponnese\/Pelop_Menalon_Trail_Elati_Vytina":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":true},"Peloponnese\/Pelop_Menalon_Trail_Nymfasia_Magouliana":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":true},"Peloponnese\/Pelop_Menalon_Trail_Valtesiniko_Lagadia":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":true},"Peloponnese\/Pelop_Menalon_Trail_Vytina_Nymfasia":{"url":null,"color":"#9a2804","width":6,"exclude":false,"useStyle":true},"Peloponnese\/Pelop_Menalon_Trail_Magouliana_Valtesiniko":{"url":null,"color":"#9a2804","width":6,"exclude":false,"useStyle":true},"Sea\/SEA_TOUR_Ydra_Gyros":{"url":null,"color":"#2f2fff","width":6,"exclude":false,"useStyle":true},"Crete\/Crete_Akrotiri_Gouverneto_loop":{"url":null,"color":"#328e06","width":6,"exclude":false,"useStyle":true},"ATTIKI\/Attiki_Paneion_ascent_summit":{"url":null,"color":"#ff612f","width":6,"exclude":false,"useStyle":true},"ATTIKI\/Attiki_Paneion_Kalyvia_Pani":{"url":null,"color":"#cf0101","width":6,"exclude":false,"useStyle":true},"ATTIKI\/Attiki_Paneion_Lagonisi_Pani":{"url":null,"color":"#2aac09","width":6,"exclude":false,"useStyle":true},"ATTIKI\/Attiki_Paneion_PrfIlias_Keratovouni":{"url":null,"color":"#f4ff00","width":6,"exclude":false,"useStyle":true},"ATTIKI\/Attiki_Lavrio_Kamariza_Lavrio":{"url":null,"color":"#ec0707","width":6,"exclude":false,"useStyle":true}}});
function getPoiCollection(key,data,meta){
this.key = key;
this.data = data;
this.item = [];
//this.meta = meta;
this.gsMap = null;
this.features = [] ;
//this.lineFeatures = [] ;
var self = this;
//console.log(data);
this.source = new ol.source.Vector({wrapX: false, noWrap: true});
this.layer = new ol.layer.Vector({
source: this.source, //clusterSource
visible:true
});
this.registerMap = function(gsMap){
this.gsMap = gsMap;
this.gsMap.map.addLayer(this.layer);
this.createFeatures();
}
this.createFeatures = function(){
this.features=[];
for(var i in this.data){
//console.log(this.data[i]);
var newItem = this.getItem(this.data[i]);
newItem.style = this.getIconStyle(newItem);
var f = this.gsMap.feature_from_coor(this.data[i].x,this.data[i].y,this.pointMsp(newItem));
//var s = this.gsMap.pointStyle("#ff0000", [0, 0, 0, 0.5], 1, 5, "");//this.adventureIconPointStyle(this.data[i].activity_type,this.data[i].difficulty);//this.gsMap.pointStyle("#ff0000", [0, 0, 0, 0.5], 0, 5, "");
f.setStyle(newItem.style);
f.show = function () {
var div = document.getElementById("myModal");
div.innerHTML =
'';
setTimeout(function () {
$('#myModal').modal('show');
}, 200);
}
newItem.feature = f;
this.item.push(newItem);
this.features.push(f);
}
this.source.addFeatures(this.features);
this.gsMap.registerOnZoomChangedFunction(function(){self.refresh();});
this.refresh();
}
this.zoomTo = function(){
this.gsMap.map.getView().fit( this.gsMap.ll2xy(this.meta.extent), this.gsMap.map.getSize());
}
this.pointMsp = function(item){
return {
width:item.width,
height:item.height,
photoPath:item.photoPath,
name:item.name,
description:item.description,
parent:this,
click:[function(s,f,l){
var div = document.getElementById("myModal");
var self = f.get('msp');
//#34b0ff
div.innerHTML =
''
+ '
'+ self.name.replace("
",": ") +'
'
+ self.parent.getImagetItem(self.photoPath,self.width,self.height)
+ '
'+ self.description +'
'
+ '
';
setTimeout(function () {
$('#myModal').modal('show');
}, 200);
}]};
}
this.poiIconPointStyle = function(activity_type,difficulty){
var iconpath = 'https://anadigit.fr/TopoMedia/Icons/activity_adv_loc/activity_' + activity_type + '_' + difficulty + '_adv_loc.png';
return new ol.style.Style({
image: new ol.style.Icon({
src: iconpath,
//size: [liconsize, liconsize]
scale:0.5
})/*,
stroke: new ol.style.Stroke({ color: (s_color ) ,width: 1+is301 + (map3.getZoom()-8) }) */})
}
this.getIconStyle = function(myItem) {
var icon_size = this.pop_info_adjust_size(myItem.type, this.gsMap.getZoom() - myItem.zoom_level)
var icon_size_set = this.pop_info_adjust_size(myItem.type, this.gsMap.getZoom() - myItem.zoom_level) * icon_size / 100;
var is = (icon_size > 0) ? icon_size : 9;
var icon_index = myItem.icon_index;
if (wpt_icon.anch_fraction_x[icon_index] >= 0) {
var anch_x = wpt_icon.anch_fraction_x[icon_index];
var anch_y = wpt_icon.anch_fraction_y[icon_index];
} else {
var anch_x = 0.5;
var anch_y = 0.5;
}
if (wpt_icon.scale[icon_index] >= 0) {
var scale = wpt_icon.scale[icon_index];
} else {
if (icon_size_set > 0) {
var scale = icon_size_set;
} else {
var scale = 0.3;
}
}
scale = 0.2;
var MarkerIcon = wpt_icon.url_s[icon_index];
var iconStyle = new ol.style.Style({
image: new ol.style.Icon(({
anchor: [anch_x, anch_y],
anchorXUnits: 'fraction',
anchorYUnits: 'fraction',
//anchorYUnits: 'pixels',
opacity: 0.95,
src: MarkerIcon,
scale: scale
}))
});
return iconStyle;
}
this.getItem = function (dat){
var type = dat.type * 1;//[3]*1;
var icon = map_point_collection.get(type);
var icon_index = icon.iconindex;
var img_path = icon.path;
return {
image: dat.photo,
name: dat.name,
description: dat.description,
link_en: dat.hlink_EN,
type: dat.type * 1,
dbid: dat.id,
hlink: dat.hlink_GR,
zoom_level: dat.zoom_level,
width: dat.width * 1,
height: dat.height * 1,
owner: dat.owner,
icon_index: icon_index,
photoPath: img_path + dat.photo + '.jpg',
thumb_path: img_path + 'thumbs/' + dat.photo + '.jpg',
//tmpim:add_image(pop_info_tmp, fp.attributes.thumb_path,-230,3,-1,-1,null),
path: (dat.type * 1 == 1) ? img_path + dat.photo + '.jpg' : ""
}
}
this.pop_info_adjust_size = function(type, dl) {
if (dl < 0) dl = 0;
var new_size = 9 + (1.5 * dl);
return new_size * 0.2;
}
this.refresh = function () {
try {
this.source.clear();
} catch (err) {
}
var zoom = this.gsMap.getZoom();
for (var i = 0; i < this.item.length; i++) {
if (zoom >= this.item[i].zoom_level) this.source.addFeatures([this.item[i].feature]);
}
}
this.getImagetItem = function(path,width,height){
/*
PARADOXES
- OLES OI EIKONES PIANOYN TO MEGISTO PLATOS
- AN TO YPSOS EINEI MEGALYTERO TOY DIAUESIMOY H EIKONA KOVETAI KATV
*/
var minAvailableWidth =568; //APO BOOTSTRAP, http://www.topoguide.gr/css/bootstrap.css, 5489,
var maxAvailableHeight = browser.size()[1]-250;
var style = "",divStyle = "";
if(height>maxAvailableHeight){
var ratio = width/height;
var renderWidth = maxAvailableHeight*ratio;
var renderHeight = maxAvailableHeight;
if(minAvailableWidth/ratio>maxAvailableHeight) divStyle += "height:" + renderHeight + "px;";
divStyle += "width:100%;";
style += "width:100%;";
} else{
if(width
';
}
}
var img_path = 'https://anadigit.fr/TopoMedia/map_points/img';
var map_point_collection = {
0 :{iconindex:14,path:img_path + "/Landscape/"},
1 :{iconindex:17,path:img_path + "/Flora/"},
2 :{iconindex:18,path:img_path + "/Animals/"},
3 :{iconindex:19,path:img_path + "/Books/"},
4 :{iconindex:20,path:img_path + "/Maps/"},
5 :{iconindex:21,path:img_path + "/Apps/"},
6 :{iconindex:22,path:img_path + "/Mushrooms/"},
7 :{iconindex:23,path:img_path + "/Animals/"},
8 :{iconindex:24,path:img_path + "/Animals/"},
9 :{iconindex:25,path:img_path + "/Architecture/"},
10:{iconindex:26,path:img_path + "/Monuments/"},
447:{iconindex:38,path:img_path + "/Refuges/"},
450:{iconindex:41,path:img_path + "/Signposts/"},
71:{iconindex:36,path:img_path + "/Geology/"},
72:{iconindex:34,path:img_path + "/Geology/"},
73:{iconindex:35,path:img_path + "/Geology/"},
204:{iconindex:27,path:img_path + "/logos/"},
206:{iconindex:28,path:img_path + "/logos/"},
200:{iconindex:29,path:img_path + "/logos/"},
201:{iconindex:30,path:img_path + "/logos/"},
205:{iconindex:31,path:img_path + "/logos/"},
202:{iconindex:32,path:img_path + "/logos/"},
203:{iconindex:33,path:img_path + "/logos/"},
301:{iconindex:42,path:img_path + "/Beach/"},
1001:{iconindex:42,path:img_path + "/Water/"},
default: {iconindex:28,path:""}
}
map_point_collection.get = function(key){
return this[key] || this.default;
}
function wpt_icon_class(){
this.count=0;
this.url = new Array();
this.url_s = new Array();
this.cx = new Array();
this.cy = new Array();
this.scx = new Array();
this.scy = new Array();
this.ix = new Array();
this.iy = new Array();
this.anch_fraction_x = new Array();
this.anch_fraction_y = new Array();
this.scale = new Array();
this.inwptwindow = new Array();
this.add = function(url,url_s,cx,cy,ix,iy,scx,scy,anch_fraction_x, anch_fraction_y,scale,inwptwindow){
this.count+=1;
this.url[this.count]="https://anadigit.fr/TopoMedia/" + url;
this.url_s[this.count]="https://anadigit.fr/TopoMedia/" + url_s;
this.cx[this.count]=cx;
this.cy[this.count]=cy;
this.scx[this.count]=scx; //kentro simeiou gia xarti
this.scy[this.count]=scy;
this.ix[this.count]=ix; //offset sto icon list
this.iy[this.count]=iy;
this.anch_fraction_x[this.count]=anch_fraction_x; //offset sto icon list
this.anch_fraction_y[this.count]=anch_fraction_y;
this.scale[this.count]=scale;
this.inwptwindow[this.count]=inwptwindow;
}
}
var wpt_icon = new wpt_icon_class();
wpt_icon.add("Icons/WPT/pin_blue.png","Icons/WPT/pin_blue_s.png",28,35,-15,10,1,18,0.0,1.0,1.0,true);
wpt_icon.add("Icons/WPT/pin_green.png","Icons/WPT/pin_green_s.png",28,35,-15,10,1,18,0.0,1.0,1.0,true);
wpt_icon.add("Icons/WPT/pin_red.png","Icons/WPT/pin_red_s.png",28,35,-15,10,1,18,0.0,1.0,1.0,true);
wpt_icon.add("Icons/WPT/star_blue.png","Icons/WPT/star_blue_s.png",24,24,5,8,11,11,0.5,0.5,1.0,true);
wpt_icon.add("Icons/WPT/star_green.png","Icons/WPT/star_green_s.png",24,24,5,8,11,11,0.5,0.5,1.0,true);
wpt_icon.add("Icons/WPT/star_red.png","Icons/WPT/star_red_s.png",24,24,5,8,11,11,0.5,0.5,1.0,true);
wpt_icon.add("Icons/WPT/lmk_red.png","Icons/WPT/lmk_red_s.png",32,32,-3,0,11,11,0.5,0.5,1.0,true);
wpt_icon.add("Icons/WPT/house_blue.png","Icons/WPT/house_blue_s.png",32,32,5,8,11,11,0.5,0.5,1.0,true);;
wpt_icon.add("Icons/WPT/house_red.png","Icons/WPT/house_red_s.png",32,32,5,8,11,11,0.5,0.5,1.0,true);
wpt_icon.add("Icons/WPT/monastery_red.png","Icons/WPT/monastery_red_s.png",32,32,5,8,11,16,0.5,0.5,1.0,true);
wpt_icon.add("Icons/WPT/church_red.png","Icons/WPT/church_red_s.png",32,32,5,8,11,16,0.5,0.5,1.0,true);
wpt_icon.add("Icons/WPT/anchor_blue.png","Icons/WPT/anchor_blue_s.png",32,32,5,8,11,11,0.5,0.5,1.0,true);
wpt_icon.add("Icons/WPT/anchor_red.png","Icons/WPT/anchor_red_s.png",32,32,5,8,11,11,0.5,0.5,1.0,true);
//photo_points
wpt_icon.add("Icons/WPT/landscape.png","Icons/WPT/landscape.png",28,28,5,8,16,16);
wpt_icon.add("img/NAV_START.png","img/NAV_START.png",32*1.5,42,-5,-48,11,11,0.5,1.0,0.6,true);
wpt_icon.add("img/NAV_END.png","img/NAV_END.png",32*1.5,162,-5,-28,11,11,0.5,1.0,0.6,true);
wpt_icon.add("Icons/WPT/flora.png","Icons/WPT/flora.png",28,28,5,8,16,16);
wpt_icon.add("Icons/WPT/bird.png","Icons/WPT/bird.png",28,28,5,8,16,16);
wpt_icon.add("Icons/WPT/book.png","Icons/WPT/book.png",28,28,5,8,16,16);
wpt_icon.add("Icons/WPT/map.png","Icons/WPT/map.png",28,28,5,8,16,16);
wpt_icon.add("Icons/WPT/iphone.png","Icons/WPT/iphone.png",28,28,5,8,16,16);
wpt_icon.add("Icons/WPT/mushroom.png","Icons/WPT/mushroom.png",28,28,5,8,16,16);
wpt_icon.add("Icons/WPT/mammal.png","Icons/WPT/mammal.png",28,28,5,8,16,16);
wpt_icon.add("Icons/WPT/turtle.png","Icons/WPT/turtle.png",30,30,5,8,16,16);
wpt_icon.add("Icons/WPT/architecture.png","Icons/WPT/architecture.png",28,28,5,8,16,16);
wpt_icon.add("Icons/WPT/monument.png","Icons/WPT/monument.png",28,28,5,8,16,16);
// pop_info
wpt_icon.add("pop_info/Icons/pop_info_1.png","pop_info/Icons/pop_info_1.png",32,32,5,8,32,32,0.5,1); // iconindex= 27
wpt_icon.add("pop_info/Icons/pop_info_2.png","pop_info/Icons/pop_info_2.png",32,32,5,8,32,32,0.5,1); // iconindex= 28
wpt_icon.add("pop_info/Icons/pop_info_3.png","pop_info/Icons/pop_info_3.png",32,32,5,8,32,32); // iconindex= 29
wpt_icon.add("pop_info/Icons/pop_info_4.png","pop_info/Icons/pop_info_4.png",32,32,5,8,32,32,0.5,1); // iconindex= 30
wpt_icon.add("pop_info/Icons/pop_info_5.png","pop_info/Icons/pop_info_5.png",32,32,5,8,32,32); // iconindex= 31
wpt_icon.add("pop_info/Icons/pop_info_6.png","pop_info/Icons/pop_info_6.png",32,32,5,8,32,32); // iconindex= 32
wpt_icon.add("pop_info/Icons/pop_info_7.png","pop_info/Icons/pop_info_7.png",32,32,5,8,32,32); // iconindex= 33
wpt_icon.add("pop_info/Icons/pop_info_101.png","pop_info/Icons/pop_info_101.png",32,32,5,8,32,32,0.5,0.5); // iconindex= 34
wpt_icon.add("pop_info/Icons/pop_info_102.png","pop_info/Icons/pop_info_102.png",32,32,5,8,32,32); // iconindex= 35
wpt_icon.add("pop_info/Icons/pop_info_103.png","pop_info/Icons/pop_info_103.png",32,32,5,8,32,32); // iconindex= 36
wpt_icon.add("Icons/WPT/POI_446_icon.png","Icons/WPT/POI_446_icon.png",32,32,5,8,32,32); // iconindex= 37
wpt_icon.add("Icons/WPT/POI_447_icon.png","Icons/WPT/POI_447_icon.png",32,32,5,8,32,32); // iconindex= 38
wpt_icon.add("Icons/WPT/POI_448_icon.png","Icons/WPT/POI_448_icon.png",32,32,5,8,32,32); // iconindex= 39
wpt_icon.add("Icons/WPT/POI_449_icon.png","Icons/WPT/POI_449_icon.png",32,32,5,8,32,32); // iconindex= 40
wpt_icon.add("Icons/WPT/POI_450_icon.png","Icons/WPT/POI_450_icon.png",32,32,5,8,32,32); // iconindex= 41
wpt_icon.add("Icons/WPT/Fountain_blue.png","Icons/WPT/Fountain_blue.png",32,32,5,8,32,32); // iconindex= 42
console.log('poi signature up to date');var poiCollection_lavrio_attica = new getPoiCollection("lavrio_attica",[{"name":"\u03a3\u039f\u03a5\u039d\u0399\u039f
\u039f \u039d\u03b1\u03cc\u03c2 \u03c4\u03bf\u03c5 \u03a0\u03bf\u03c3\u03b5\u03b9\u03b4\u03ce\u03bd\u03b1","owner":"AnaDigit","x":24.025631,"y":37.650643,"photo":"Attiki_Sounion_Pseidon_temple4","type":10,"zoom_level":10,"id":1172,"hlink_GR":"","hlink_EN":"","description":"","height":530,"width":800},{"name":"\u03a3\u039f\u03a5\u039d\u0399\u039f
\u0386\u03bd\u03c9 \u03a3\u03bf\u03cd\u03bd\u03b9\u03bf
\u0391\u03b3\u03af\u03b1 \u0392\u03b1\u03c1\u03b2\u03ac\u03c1\u03b1","owner":"AnaDigit","x":24.015814,"y":37.673906,"photo":"Attiki_Sounio_AnoSounio_AgVarvara","type":9,"zoom_level":14,"id":1173,"hlink_GR":"","hlink_EN":"","description":"","height":397,"width":600},{"name":"\u03a3\u039f\u03a5\u039d\u0399\u039f
\u039a\u03b1\u03bc\u03ac\u03c1\u03b9\u03b6\u03b1
\u0391\u03b3\u03af\u03b1 \u03a4\u03c1\u03b9\u03ac\u03b4\u03b1","owner":"AnaDigit","x":24.017745,"y":37.696448,"photo":"Attiki_Kamariza_AgTriada","type":9,"zoom_level":13,"id":1174,"hlink_GR":"","hlink_EN":"","description":"","height":410,"width":600},{"name":"\u03a3\u039f\u03a5\u039d\u0399\u039f
\u0391\u03c1\u03c7\u03b1\u03af\u03b1 \u03bc\u03b5\u03c4\u03b1\u03bb\u03bb\u03b5\u03af\u03b1 \u039b\u03b1\u03c5\u03c1\u03af\u03bf\u03c5","owner":"AnaDigit","x":24.01767,"y":37.686456,"photo":"Attiki_Lavrio_arxaio_metaourgiko_ergastirio_Kordelas","type":10,"zoom_level":13,"id":1175,"hlink_GR":"","hlink_EN":"","description":"\u0391\u03c1\u03c7\u03b1\u03af\u03bf \u03bc\u03b5\u03c4\u03b1\u03bb\u03bb\u03bf\u03c5\u03c1\u03b3\u03b9\u03ba\u03cc \u03b5\u03c1\u03b1\u03b3\u03b1\u03c3\u03c4\u03ae\u03c1\u03b9\u03bf (\"\u03c4\u03bf\u03c5 \u039a\u03bf\u03c1\u03b4\u03b5\u03bb\u03bb\u03ac\")","height":311,"width":600},{"name":"\u03a3\u039f\u03a5\u039d\u0399\u039f
\u0393\u03b5\u03c9\u03bb\u03bf\u03b3\u03b9\u03ba\u03cc-\u039f\u03c1\u03c5\u03ba\u03c4\u03bf\u03bb\u03bf\u03b3\u03b9\u03ba\u03cc
\u03bc\u03bf\u03c5\u03c3\u03b5\u03af\u03bf \u039a\u03b1\u03bc\u03ac\u03c1\u03b9\u03b6\u03b1\u03c2","owner":"AnaDigit","x":24.014419,"y":37.72607,"photo":"Attiki_Kamariza_Mouseio","type":9,"zoom_level":14,"id":1176,"hlink_GR":"","hlink_EN":"","description":"","height":397,"width":600},{"name":"\u03a3\u039f\u03a5\u039d\u0399\u039f
\u03a0\u03b1\u03bb\u03b9\u03cc\u03c2 \u03c3\u03c4\u03c1\u03b1\u03c4\u03ce\u03bd\u03b1\u03c2
\u039a\u03b1\u03bc\u03ac\u03c1\u03b9\u03b6\u03b1\u03c2","owner":"AnaDigit","x":24.017381,"y":37.726885,"photo":"Attiki_Kamariza_Stratonas","type":9,"zoom_level":15,"id":1177,"hlink_GR":"","hlink_EN":"","description":"","height":247,"width":600},{"name":"\u03a3\u039f\u03a5\u039d\u0399\u039f
\u03a4\u03bf \u03b2\u03cd\u03b8\u03b9\u03c3\u03bc\u03b1 \u03a7\u03ac\u03bf\u03c2
\u03c3\u03c4\u03b7\u03bd \u039a\u03b1\u03bc\u03ac\u03c1\u03b9\u03b6\u03b1","owner":"AnaDigit","x":24.021919,"y":37.719977,"photo":"Attiki_Kamariza_Chaos","type":0,"zoom_level":13,"id":1178,"hlink_GR":"","hlink_EN":"","description":"","height":530,"width":800},{"name":"\u03a3\u039f\u03a5\u039d\u0399\u039f
\u0391\u03c1\u03c7\u03b1\u03af\u03b1 \u03bc\u03b5\u03c4\u03b1\u03bb\u03bb\u03b5\u03af\u03b1 \u039b\u03b1\u03c5\u03c1\u03af\u03bf\u03c5","owner":"AnaDigit","x":24.02782,"y":37.670331,"photo":"Attiki_Lavrio_remains1","type":10,"zoom_level":15,"id":1179,"hlink_GR":"","hlink_EN":"","description":"\u039b\u03b5\u03af\u03c8\u03b1\u03bd\u03b1 \u03b5\u03b3\u03ba\u03b1\u03c4\u03b1\u03c3\u03c4\u03ac\u03c3\u03b5\u03c9\u03bd","height":397,"width":600},{"name":"\u03a3\u039f\u03a5\u039d\u0399\u039f
\u0391\u03c3\u03b2\u03b5\u03c3\u03c4\u03bf\u03ba\u03ac\u03bc\u03b9\u03bd\u03bf","owner":"AnaDigit","x":24.027906,"y":37.672725,"photo":"Attiki_Lavrio_asvesto","type":9,"zoom_level":16,"id":1180,"hlink_GR":"","hlink_EN":"","description":"","height":397,"width":600},{"name":"\u03a3\u039f\u03a5\u039d\u0399\u039f
\u039c\u03b5\u03c4\u03b1\u03bb\u03bb\u03b5\u03af\u03b1 \u039b\u03b1\u03c5\u03c1\u03af\u03bf\u03c5","owner":"AnaDigit","x":24.016823,"y":37.679009,"photo":"Attiki_Lavrio_metaleia11","type":9,"zoom_level":15,"id":1181,"hlink_GR":"","hlink_EN":"","description":"","height":600,"width":397},{"name":"\u03a3\u039f\u03a5\u039d\u0399\u039f
\u039c\u03b5\u03c4\u03b1\u03bb\u03bb\u03b5\u03af\u03b1 \u039b\u03b1\u03c5\u03c1\u03af\u03bf\u03c5","owner":"AnaDigit","x":24.018207,"y":37.6794,"photo":"Attiki_Lavrio_metaleia2","type":9,"zoom_level":15,"id":1182,"hlink_GR":"","hlink_EN":"","description":"","height":397,"width":600},{"name":"\u03a3\u039f\u03a5\u039d\u0399\u039f
\u039c\u03b5\u03c4\u03b1\u03bb\u03bb\u03b5\u03af\u03b1 \u039b\u03b1\u03c5\u03c1\u03af\u03bf\u03c5","owner":"AnaDigit","x":24.01619,"y":37.682244,"photo":"Attiki_Lavrio_metaleia3","type":9,"zoom_level":16,"id":1183,"hlink_GR":"","hlink_EN":"","description":"","height":530,"width":800},{"name":"\u03a3\u039f\u03a5\u039d\u0399\u039f
\u039c\u03b5\u03c4\u03b1\u03bb\u03bb\u03b5\u03af\u03b1 \u039b\u03b1\u03c5\u03c1\u03af\u03bf\u03c5","owner":"AnaDigit","x":24.017842,"y":37.68131,"photo":"Attiki_Lavrio_metaleia6","type":9,"zoom_level":16,"id":1184,"hlink_GR":"","hlink_EN":"","description":"","height":600,"width":397},{"name":"\u03a3\u039f\u03a5\u039d\u0399\u039f
\u039c\u03b5\u03c4\u03b1\u03bb\u03bb\u03b5\u03af\u03b1 \u039b\u03b1\u03c5\u03c1\u03af\u03bf\u03c5","owner":"AnaDigit","x":24.016512,"y":37.695158,"photo":"Attiki_Lavrio_metaleia7","type":9,"zoom_level":16,"id":1185,"hlink_GR":"","hlink_EN":"","description":"","height":364,"width":600},{"name":"\u039b\u0391\u03a5\u03a1\u0395\u03a9\u03a4\u0399\u039a\u0397
\u0398\u03ad\u03b1 \u03c0\u03c1\u03bf\u03c2 \u03c4\u03bf \u0398\u03bf\u03c1\u03b9\u03ba\u03cc
\u03ba\u03b1\u03b9 \u03c4\u03b7 \u039c\u03b1\u03ba\u03c1\u03cc\u03bd\u03b7\u03c3\u03bf","owner":"AnaDigit","x":24.015535,"y":37.746086,"photo":"Attiki_Lavrio_panoramix","type":0,"zoom_level":14,"id":1186,"hlink_GR":"","hlink_EN":"","description":"","height":240,"width":800},{"name":"\u03a3\u039f\u03a5\u039d\u0399\u039f
\u039c\u03b5\u03c4\u03b1\u03bb\u03bb\u03b5\u03af\u03b1 \u039b\u03b1\u03c5\u03c1\u03af\u03bf\u03c5","owner":"AnaDigit","x":24.017424,"y":37.679256,"photo":"Attiki_Lavrio_metaleia5","type":9,"zoom_level":16,"id":1187,"hlink_GR":"","hlink_EN":"","description":"","height":632,"width":600},{"name":"\u0391\u03a4\u03a4\u0399\u039a\u0397
\u0391\u03c1\u03c7\u03b1\u03af\u03bf \u03b8\u03ad\u03b1\u03c4\u03c1\u03bf \u0398\u03bf\u03c1\u03b9\u03ba\u03bf\u03cd, \u039b\u03b1\u03c5\u03c1\u03b5\u03c9\u03c4\u03b9\u03ba\u03ae","owner":"topoguide","x":24.053832,"y":37.737763,"photo":"Attiki_Lavrio_Thoriko_theater2","type":10,"zoom_level":13,"id":1899,"hlink_GR":"","hlink_EN":"","description":"","height":532,"width":800},{"name":"\u0391\u03a4\u03a4\u0399\u039a\u0397
\u039b\u03b1\u03cd\u03c1\u03b9\u03bf","owner":"topoguide","x":24.059068,"y":37.715074,"photo":"Attiki_Lavrio3","type":9,"zoom_level":16,"id":1901,"hlink_GR":"","hlink_EN":"","description":"","height":465,"width":700},{"name":"\u0391\u03a4\u03a4\u0399\u039a\u0397
\u039b\u03b1\u03cd\u03c1\u03b9\u03bf","owner":"topoguide","x":24.055191,"y":37.715621,"photo":"Attiki_Lavrio21","type":9,"zoom_level":17,"id":1902,"hlink_GR":"","hlink_EN":"","description":"","height":500,"width":332}],{});function createAdventureListWidgetContext(){};console.log('sort type: none');function createAdventureListWidgetContext(){var divHere = (document.getElementById('pathList'))?true:false;var style = document.createElement('style');style.type = 'text/css';style.innerHTML = '.advListItemWidgetStyleMona{background:#f5f5f5;overflow:hidden;position:relative;width:100%;height:45px;border-bottom:1px solid #fff;margin:0px;} .advListItemWidgetStyle{background:#fdfdfd;overflow:hidden;position:relative;width:100%;height:45px;border-bottom:1px solid #fff;margin:0px;} .advListItemWidgetStyleMona:hover{background:#dcdcbc;} .advListItemWidgetStyle:hover{background:#dcdcbc;}';if(divHere) document.getElementsByTagName('head')[0].appendChild(style);if(divHere) {document.getElementById('pathList').innerHTML="";}else{console.log('adventure list widget activated but div missing. Requested id: pathList');};}; var overrideUserOptions = {lng:23,lat:38,zoom:7,ac:["lavrio_attica"],pc:["lavrio_attica"],url: 'https://m1.anadigit.fr/tms/1.0.0/ntn_combo/{z}/{x}/{-y}.png',showLogo: 1,showZoomTool: 1};
var overrideAfterLoad = function(map){ adventureCollection_lavrio_attica.zoomTo();};
var gsMapManager = this.gsMapManager;
gsMapManager.create = function(mapDivId,options,afterLoad){
if(typeof overrideUserOptions != "undefined") {
for( var i in options)
overrideUserOptions[i] = options[i];
options = overrideUserOptions;
}
if(typeof afterLoad != "undefined") {
afterLoad = afterLoad
}else{
if(typeof overrideAfterLoad != "undefined") afterLoad = overrideAfterLoad
};
return gsMapManager.create_dummy_function(mapDivId,options,afterLoad);
// return new gsMapObject(mapDivId,options,afterLoad);
}