PageSourceSearch

http://vttrack.fr/js/VTTrack/p_ArgParser.js?1791055304

js vttrack.fr collected 2026-10-03 21:20:44 UTC 3,034 bytes, 1 lines download raw bytes

1OpenLayers.Control.ArgParser=OpenLayers.Class(OpenLayers.Control,{center:null,zoom:null,layers:null,displayProjection:null,initialize:function(a){OpenLayers.Control.prototype.initialize.apply(this,arguments)},setMap:function(g){OpenLayers.Control.prototype.setMap.apply(this,arguments);for(var d=0,a=this.map.controls.length;d<a;d++){var f=this.map.controls[d];if((f!=this)&&(f!=null)&&(f.CLASS_NAME=="OpenLayers.Control.ArgParser")){if(f.displayProjection!=this.displayProjection){this.displayProjection=f.displayProjection}break}}if(d==this.map.controls.length){var c=OpenLayers.Util.getParameters();if(c.layers){c.layers=c.layers.replace("GEOGRAPHICALGRIDSYSTEMS.MAPS","IGN Carte");if(document.location.href.indexOf("source.php",0)>0){var b=[];var e="";for(var d=0;d<31;d++){b[d]=""}b[4]="IDEE Orthophotos";b[5]="Cartes IDEE";b[6]="IGM 25000 Italy";b[7]="IGM 100 000 Italy";b[8]="Topos";b[13]="Topos";b[18]="VTTour Sentiers";b[23]="Singletrack Sentiers";b[28]="Limites VTT";for(var d=0,a=c.layers.length;d<a;d++){if(c.layers[d]=="T"&&b[d]!=""){e+=b[d]+"|"}}this.layers=e}else{if(document.location.href.indexOf("difficulte.php",0)>0){var b=[];var e="";for(var d=0;d<31;d++){b[d]=""}b[4]="IDEE Orthophotos";b[5]="Cartes IDEE";b[6]="IGM 25000 Italy";b[7]="IGM 100 000 Italy";b[8]="Topos";b[13]="Sentiers";b[18]="Pistes";b[23]="Raids";b[28]="Limites VTT";for(var d=0,a=c.layers.length;d<a;d++){if(c.layers[d]=="T"&&b[d]!=""){e+=b[d]+"|"}}this.layers=e}else{this.layers=c.layers}}}else{if(!mobile){this.layers="Sentiers|Skitour Summits|C2C Summits|Pentes IGN"}else{this.layers="Sentiers|Pentes IGN"}}this.map.events.register("addlayer",this,this.configureLayers);this.configureLayers();if(c.lat&&c.lon){this.center=new OpenLayers.LonLat(parseFloat(c.lon),parseFloat(c.lat));if(c.zoom){this.zoom=parseInt(c.zoom)}this.map.events.register("changebaselayer",this,this.setCenter);this.setCenter()}}},setCenter:function(){if(this.map.baseLayer){this.map.events.unregister("changebaselayer",this,this.setCenter);if(this.displayProjection){this.center.transform(this.displayProjection,this.map.getProjectionObject())}this.map.setCenter(this.center,this.zoom)}},configureLayers:function(){var b=(mobile||filter)?6:8;var j=positionLayer?1:0;var d=(urlGPX!=""||!editor)?1:0;var k=(createGeneralPOILayers)?4+1+4:0;this.layers=this.layers.replace("SwissTopo","");var c=layersLabel.length*b+baseLayersLabel.length+1+vectorLabel.length+k+j+d;if(this.map.layers.length==(c)){this.map.events.unregister("addlayer",this,this.configureLayers);var a=true;for(var e=0,h=this.map.layers.length;e<h;e++){var f=this.map.layers[e];if(f.isBaseLayer||f.name.indexOf("Limites",0)>=0||f instanceof OpenLayers.Layer.Aggregate||(f instanceof OpenLayers.Layer.Vector&&f.aggregate==null&&f.name.indexOf("OpenLayers",0)<0)){var g=this.layers.indexOf(f.name);if(g>=0&&(g==0||this.layers[g-1]=="|"||this.layers[g-1]=="C")){f.setVisibility(true);if((urlGPX==""&&centerOnId=="")&&f.isBaseLayer){map.setBaseLayer(f);a=false}}}}}},CLASS_NAME:"OpenLayers.Control.ArgParser"});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.