var lastbounds; var lastzoom; var numPoints=0; var maxPoints=250; var map; var markers; var i=0; var timeOut = 100; lastzoom=2; function getURLParam(strParamName){ var strReturn = ""; var strHref = window.location.href; if ( strHref.indexOf("?") > -1 ){ var strQueryString = strHref.substr(strHref.indexOf("?")).toLowerCase(); var aQueryString = strQueryString.split("&"); for ( var iParam = 0; iParam < aQueryString.length; iParam++ ){ if ( aQueryString[iParam].indexOf(strParamName + "=") > -1 ){ var aParam = aQueryString[iParam].split("="); strReturn = aParam[1]; break; } } } return strReturn; } function createOtherMarkerL(point,number,image) { var icon = new GIcon(); icon.image = image[0]; icon.iconSize = new GSize(image[1], image[2]); subt = image[2] / 100 * 11; subt = Math.ceil(subt); var anchor = image[2] - subt; icon.iconAnchor= new GPoint(10, anchor); var infoanchor = image[2] / 3; infoanchor = Math.floor(infoanchor); icon.infoWindowAnchor = new GPoint(infoanchor, 2); var marker = new GMarker(point,icon); var html = number; GEvent.addListener(marker, "mouseover", function() {marker.openInfoWindowHtml(html);}); return marker; } function createOtherLineL(pointstart,pointend,rid,swift) { if(rid != 34){ if(swift == 0){ var pline = new GPolyline([pointstart, pointend], "#0000ff", 4); } else{ var pline = new GPolyline([pointstart, pointend], "#ccff00", 4); } } else{ var pline = new GPolyline([pointstart, new GPoint(-28.4765625,59.712097173322924), pointend], "#ccff00", 4); } return pline; } function createOtherTabMarkerL(point,htmls,labels,image) { var icon = new GIcon(); icon.image = image[0]; icon.iconSize = new GSize(image[1], image[2]); subt = image[2] / 100 * 11; subt = Math.ceil(subt); var anchor = image[2] - subt; icon.iconAnchor= new GPoint(10, anchor); var infoanchor = image[2] / 3; infoanchor = Math.floor(infoanchor); icon.infoWindowAnchor = new GPoint(infoanchor, 2); var marker = new GMarker(point,icon); GEvent.addListener(marker, "click", function() { // adjust the width so that the info window is large enough for this many tabs if (htmls.length > 2) { htmls[0] = '
' + htmls[0] + '
'; } var tabs = []; for (var i=0; i