PageSourceSearch

http://www.holvan.hu/res/psmap/psmap.js

js holvan.hu collected 2026-10-02 13:01:00 UTC 3,095 bytes, 71 lines download raw bytes

1function PSScript(src){document.write('<'+'script type="text/javascript" src="'+src+'"'+'><'+'/script>');};
2function min(a,b){return (a<b) ?a :b;};
3function max(a,b){return (a>b) ?a :b;};
4
5if(!window.Exception) PSScript(PATH_RES+'psmap/exception.1.00.js');
6if(!window.AjaxRequest) PSScript(PATH_RES+'psmap/ajax.1.00.js');
7if(!window.onmousewheel) PSScript(PATH_RES+'psmap/onmousewheel.js');
8if(!window.EOVWGS) PSScript(PATH_RES+'psmap/eovwgs.1.00.js');
9
10with({$:PSMAP.prototype}){
11///////////////////////////////////////////////////////////////////////////////
12	$._debug = function(debugstr){
13		var debug = document.getElementById('psmap-debug');
14		if(!debug) return;
15		debug.innerHTML += '<pre>'+debugstr+'</pre><br />';
16		setDisplay(debug, 'block');
17		}
18	}
19
20function PSMAP(engineUrl){
21	var self = this;
22	this.name = 'PSMAP';
23	this.engineUrl = engineUrl;
24	this.moveData = {active:false, sx:0, sy:0};
25	this.zoomData = {active:false, keret:false, sx:0, sy:0};
26	this.internalMode = 3;
27	this.zoomIntesity = 2.3;
28	this.mapQuality = 1.6;
29	this.CP = {skrd:[0,0], wkrd:[0,0]};
30//	this.routePoints = [];
31
32	this.mapData = {busy:false, name:'', layout:1, windowLimit:null};
33	this.cimData = {busy:false};
34	this.symbols = [];
35
36	try{
37		this.mapwindow =  document.getElementById('map-window');
38		this.mapimg =  document.getElementById('map-image');
39		this.mapcopyright =  document.getElementById('map-copyright');
40		this.mapsymbols =  document.getElementById('map-symbols');
41//		this.zoommarker =  document.getElementById('mapzoommarker');
42
43		this._setMapWindowClass();
44		this.setCopyright('&copy; <a href="http://www.cnm.hu/" target="_blank">Cartographia New Media (CNM)</a> &amp; <a href="http://www.psoft.hu/" target="_blank">Psoft Informatikai Kft.</a>');
45
46		//attach map controlling events
47		if(this.mapwindow && this.mapimg){
48			disableIMGInteractivity(this.mapimg);
49			this.mapimg.onload = function(event){self._mapImgOnSet(event);}
50
51			this._mapwindow_OnMouseDown = this.mapwindow.onmousedown;
52			this.mapwindow.onmousedown = function(event){return self.mapwindow_OnMouseDown(event)};
53			this._mapwindow_OnMouseMove = this.mapwindow.onmousemove;
54			this.mapwindow.onmousemove = function(event){return self.mapwindow_OnMouseMove(event)};
55			this._mapwindow_OnDblClick = this.mapwindow.ondblclick;
56			this.mapwindow.ondblclick = function(event){return self.mapwindow_OnDblClick(event)};
57			if(window.onmousewheel) onmousewheel(this.mapwindow, function(delta){self.mapwindow_OnMouseWheel(delta);});
58//			this._onMouseDown_mapimg = this.mapimg.onmousedown;
59//			this.mapimg.onmousedown = function(event){return self.onMouseDown_mapimg(event)};
60//			if(this.zoommarker) this.zoommarker.onmousemove = function(event){if(!event) event=window.event; return false;}
61			}
62		else throw new Exception('PSMAP: Cannot find the required DHTML objects');
63		}
64	catch(e){alert(e);}
65	}
66
67PSScript(PATH_RES+'psmap/psmap.map.1.00.js');
68PSScript(PATH_RES+'psmap/psmap.ovm.1.00.js');
69PSScript(PATH_RES+'psmap/psmap.ruler.1.00.js');
70PSScript(PATH_RES+'psmap/psmap.cim.1.00.js');
71PSScript(PATH_RES+'psmap/psmap.symb.1.00.js');

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.