var communes = []; communes[11] = { lon: 5.800000, lat: 49.894001, zoom: 5, layer: '00311' }; communes[12] = { lon: 5.950000, lat: 49.888000, zoom: 5, layer: '00312' }; communes[13] = { lon: 5.853000, lat: 49.933998, zoom: 5, layer: '00313' }; communes[14] = { lon: 5.865000, lat: 49.969002, zoom: 5, layer: '00314' }; communes[15] = { lon: 5.927000, lat: 49.980999, zoom: 5, layer: '00315' }; communes[92] = { lon: 5.880000, lat: 49.950001, zoom: 4, layer: '00201' }; var layerData = []; layerData[40101] = { type: 'point', projection: '4326', icon: '40101' }; layerData[40103] = { type: 'point', projection: '4326', icon: '40103' }; layerData[40104] = { type: 'point', projection: '4326', icon: '40104' }; layerData[10301] = { type: 'point', projection: '4326', icon: '10301' }; layerData[40201] = { type: 'point', projection: '4326', icon: '40201' }; layerData[40202] = { type: 'point', projection: '4326', icon: '40202' }; layerData[40203] = { type: 'point', projection: '4326', icon: '40203' }; layerData[40204] = { type: 'point', projection: '4326', icon: '40204' }; layerData[10200] = { type: 'point', projection: '4326', icon: '10202' }; layerData[40301] = { type: 'point', projection: '4326', icon: '40301' }; layerData[40302] = { type: 'point', projection: '4326', icon: '40304' }; layerData[40303] = { type: 'point', projection: '4326', icon: '40303' }; layerData[40304] = { type: 'point', projection: '4326', icon: '40302' }; layerData[40305] = { type: 'point', projection: '4326', icon: '40305' }; layerData[40306] = { type: 'point', projection: '4326', icon: '40306' }; layerData[40502] = { type: 'point', projection: '4326', icon: '40502' }; layerData[40503] = { type: 'point', projection: '4326', icon: '40503' }; layerData[40404] = { type: 'tour', projection: '4326', icon: '40404' }; layerData[40405] = { type: 'tour', projection: '4326', icon: '40405' }; layerData[40401] = { type: 'tour', projection: '4326', icon: '40401' }; layerData[40402] = { type: 'tour', projection: '4326', icon: '40402' }; layerData[40406] = { type: 'tour', projection: '4326', icon: '40406' }; layerData[40407] = { type: 'tour', projection: '4326', icon: '40401' }; layerData[40601] = { type: 'point', projection: '4326', icon: '40601' }; layerData[40602] = { type: 'point', projection: '4326', icon: '40602' }; layerData[40605] = { type: 'point', projection: '4326', icon: '40605' }; layerData[40606] = { type: 'point', projection: '4326', icon: '40609' }; layerData[40608] = { type: 'point', projection: '4326', icon: '40608' }; layerData[40609] = { type: 'point', projection: '4326', icon: '40606' }; layerData[40610] = { type: 'point', projection: '4326', icon: '40610' }; layerData[40611] = { type: 'point', projection: '4326', icon: '40611' }; layerData[40612] = { type: 'point', projection: '4326', icon: '40612' }; layerData[40613] = { type: 'point', projection: '4326', icon: '40613' }; layerData[40614] = { type: 'point', projection: '4326', icon: '40614' }; layerData[40615] = { type: 'point', projection: '4326', icon: '40615' }; layerData[50205] = { type: 'point', projection: '4326', icon: '50205' }; layerData[50206] = { type: 'point', projection: '4326', icon: '50206' }; layerData[40701] = { type: 'point', projection: '4326', icon: '40701' }; layerData[40702] = { type: 'point', projection: '4326', icon: '40702' }; layerData[40704] = { type: 'point', projection: '4326', icon: '40704' }; layerData[10704] = { type: 'point', projection: '4326', icon: '10704' }; layerData[10701] = { type: 'point', projection: '4326', icon: '10701' }; layerData[10707] = { type: 'point', projection: '4326', icon: '10707' }; layerData[10710] = { type: 'point', projection: '4326', icon: '10710' }; layerData[10705] = { type: 'point', projection: '4326', icon: '10705' }; layerData[10706] = { type: 'point', projection: '4326', icon: '10706' }; layerData[20204] = { type: 'area', projection: '2169', icon: '20201' }; layerData[20205] = { type: 'area', projection: '2169', icon: '20201' }; layerData[30405] = { type: 'point', projection: '4326', icon: '30404' }; layerData[30401] = { type: 'point', projection: '4326', icon: '30213' }; layerData[30403] = { type: 'point', projection: '4326', icon: '30403' }; layerData[30410] = { type: 'point', projection: '4326', icon: '30410' }; layerData[30409] = { type: 'point', projection: '4326', icon: '30406' }; var dict = {}; dict.de = { summary: 'Steckbrief', profile: 'Höhenprofil', length: 'Länge', duration: 'Dauer', start: 'Startpunkt', difficulty: 'Schwierigkeitsgrad', meters_altitude: 'Höhenmeter', levels: [ '', 'leicht', 'mittel', 'schwer' ], moreInfo: 'mehr Infos', searchResults: 'Suchergebnisse', noResults: 'keine Suchergebnisse gefunden', searchCat: 'Kategorie', selectLayer: 'Ebene auswählen', allLayers: 'alle Ebenen', noLayerSelected: 'keine Ebene angewählt', deleteLayer: 'löschen', moreResults: 'weitere Suchergebnisse anzeigen', resultsFound: 'Suchergebnisse gefunden', distance: 'Entfernung', forText: 'für' }; dict.fr = { summary: 'Fiche signalétique', profile: 'Profil d\'altitude', length: 'Longeur', duration: 'Durée', start: 'Point de départ', difficulty: 'Degré de difficulté', meters_altitude: 'Mètres en altitude', levels: [ '', 'facile', 'moyen', 'difficile' ], moreInfo: 'plus d\'infos', searchResults: 'Résultats de la recherche', noResults: 'pas de résultats trouvés', searchCat: 'Catégorie', selectLayer: 'selectionner une couche', allLayers: 'toutes les couches', noLayerSelected: 'aucune couche sélectionnée', deleteLayer: 'supprimer', moreResults: 'afficher davantage de résultats', resultsFound: 'résultats trouvés', distance: 'Distance', forText: 'pour' }; dict.en = { summary: 'Summary', profile: 'Height profile', length: 'Length', duration: 'Duration', start: 'Start point', difficulty: 'Level', meters_altitude: 'Altitude meters', moreInfo: '', levels: [ '', 'easy', 'medium', 'advanced' ], searchResults: 'Search results', noResults: 'keine Suchergebnisse gefunden', searchCat: 'Kategorie', selectLayer: 'select layer', allLayers: 'all layers', noLayerSelected: 'no layer selected', deleteLayer: 'delete', moreResults: 'more results', resultsFound: 'results found', distance: 'Distance', forText: 'for' }; dict.nl = { summary: 'Kenmerken', profile: 'Hoogteprofiel', length: 'Lengte', duration: 'Duur', start: 'Vertrek', difficulty: 'Moeilijkheidsgraad', meters_altitude: 'Hoogteverschil', levels: [ '', 'gemakkelijk', 'middel', 'moeilijk' ], moreInfo: '', searchResults: 'Search results', noResults: 'keine Suchergebnisse gefunden', searchCat: 'Kategorie', selectLayer: 'select layer', allLayers: 'all layers', noLayerSelected: 'no layer selected', deleteLayer: 'delete', moreResults: 'more results', resultsFound: 'results found', distance: 'Distance', forText: 'for' }; var styleMapRoutePois = new OpenLayers.StyleMap( { graphicWidth: 18, graphicHeight: 18, graphicXOffset: -9, graphicYOffset: -9 } ); var lookupPois = { 'A33': { externalGraphic: 'images/routefeatures/abstieg.png' }, 'A34': { externalGraphic: 'images/routefeatures/treppe.png' }, 'A36': { externalGraphic: 'images/routefeatures/attention.png' }, 'B11': { externalGraphic: 'images/routefeatures/station.png' }, // Infotafel 'B21': { externalGraphic: 'images/routefeatures/bank.png' }, 'B22': { externalGraphic: 'images/routefeatures/bank_tisch.png' }, 'B23': { externalGraphic: 'images/routefeatures/trash.png' }, 'B24': { externalGraphic: 'images/routefeatures/shelter.png' }, 'C12': { externalGraphic: 'images/routefeatures/sehenswuerdigkeit.png' }, 'C13': { externalGraphic: 'images/routefeatures/viewpoint.png' }, 'C21': { externalGraphic: 'images/routefeatures/restaurant.png' }, 'C22': { externalGraphic: 'images/routefeatures/restaurant.png' }, 'C24': { externalGraphic: 'images/routefeatures/camping.png' }, 'C31': { externalGraphic: 'images/routefeatures/bus.png' }, 'C32': { externalGraphic: 'images/routefeatures/train.png' }, 'C33': { externalGraphic: 'images/routefeatures/parking.png' }, 'C34': { externalGraphic: 'images/routefeatures/playground.png' }, 'C37': { externalGraphic: 'images/routefeatures/wc.png' }, 'C38': { externalGraphic: 'images/routefeatures/checkpoint.png' }, 'start': { externalGraphic: 'images/routefeatures/start.png' } }; styleMapRoutePois.addUniqueValueRules( "default", "symbol", lookupPois ); var styleMapLocalities = new OpenLayers.StyleMap( { 'default': new OpenLayers.Style( { 'fontColor': '#ffffff', 'fontOpacity': 0.7, 'fontFamily': 'arial, sans-serif', 'fontSize': '${fontSize}', 'fontWeight': 'bold', 'label': '${name}', 'labelYOffset': '${labelYOffset}', // [px] 'pointRadius': '${pointRadius}', 'fillColor': '#ffffff', 'fillOpacity': '${opacity}', 'stroke': false }, { context: { name: function( feature ){ var name = feature.attributes.name; var level = feature.attributes.level; var zoom = map.getZoom(); if( zoom <= 11 ) { if( level == 1 ) { return name; } else { return ''; }; } else { if( zoom <= 13 ) { if( level <= 2 ) { return name; } else { return ''; }; } else { return name; }; }; }, opacity: function( feature ){ var opacity = 0.7; var level = feature.attributes.level; var zoom = map.getZoom(); if( zoom <= 11 ) { if( level == 1 ) { return opacity; } else { return 0.0; }; } else { if( zoom <= 13 ) { if( level <= 2 ) { return opacity; } else { return 0.0; }; } else { return opacity; }; }; }, fontSize: function( feature ){ var level = feature.attributes.level; if( level == 1 ) { return "18px"; } else { return "14px"; }; }, pointRadius: function( feature ){ var level = feature.attributes.level; if( level == 1 ) { return "8"; } else { return "5"; }; }, labelYOffset: function( feature ){ var level = feature.attributes.level; if( level == 1 ) { return 18; } else { return 14; }; } } } ) } );