// Version 0.0 Initial version var picPath = "neukoelln_ewindow/"; function EStyle(stemImage, stemSize, boxClass, boxOffset) { this.stemImage = stemImage; this.stemSize = stemSize; this.boxClass = boxClass; this.boxOffset = boxOffset; //this.border = border; // Known fudge factors are: // Firefox (1.0.6 and 1.5) 5, -1 // IE 6.0 0, -1 // Opera 8.54 3, -1 // Opera 9 prev 4, -1 // Netscape (7.2, 8.0) 5, -1 // Safari 5, -1 var agent = navigator.userAgent.toLowerCase(); var fudge = 5; // assume Netscape if no match found if (agent.indexOf("opera") > -1) { fudge = 3; } if (agent.indexOf("firefox") > -1) { fudge = 5; } if (agent.indexOf("safari") > -1) { fudge = 5; } if ((agent.indexOf("msie") > -1) && (agent.indexOf("opera") < 1)){ fudge = 0; } this.fudge = fudge; } var E_STYLE_1 = new EStyle(picPath + "Stem1.png", new GSize(81,87), "estyle1", new GPoint(-30,87-3)); var E_STYLE_2 = new EStyle(picPath + "Stem2.png", new GSize(81,87), "estyle2", new GPoint(-30,87-1)); var E_STYLE_3 = new EStyle(picPath + "Stem3.png", new GSize(81,87), "estyle3", new GPoint(-30,87-10)); var E_STYLE_4 = new EStyle(picPath + "Stem3.png", new GSize(81,87), "estyle4", new GPoint(-30,87-10)); var E_STYLE_5 = new EStyle(picPath + "Stem1.png", new GSize(81,87), "estyle5", new GPoint(-30,87-3)); var E_STYLE_6 = new EStyle(picPath + "Stem6.png", new GSize(100,50), "estyle6", new GPoint(100-2,20)); var L_STYLE_1 = new EStyle(picPath + "lu01.png", new GSize(81,87), "lstyle1", new GPoint(0,89-3)); function EWindow(map,estyle) { // parameters this.map=map; this.estyle=estyle; // internal variables this.visible = false; // browser - specific variables this.ie = false; var agent = navigator.userAgent.toLowerCase(); if ((agent.indexOf("msie") > -1) && (agent.indexOf("opera") < 1)){ this.ie = true} else {this.ie = false} } EWindow.prototype = new GOverlay(); EWindow.prototype.initialize = function(map) { var div1 = document.createElement("div"); div1.style.position = "absolute"; map.getPane(G_MAP_FLOAT_SHADOW_PANE).appendChild(div1); var div2 = document.createElement("div"); div2.style.position = "absolute"; div2.style.width = this.estyle.stemSize.width+"px"; map.getPane(G_MAP_FLOAT_SHADOW_PANE).appendChild(div2); this.div1 = div1; this.div2 = div2; } EWindow.prototype.openOnMap = function(point, html, offset, image,kind) { this.offset = offset||new GPoint(0,0); this.point = point; var strg = '
![]() | ';
strg += '![]() | ';
strg += '