PageSourceSearch

https://www.greaterantilleshotels.com/build/packs/js/maps.pack.js

js greaterantilleshotels.com collected 2026-10-10 00:56:46 UTC 26,435 bytes, 1 lines download raw bytes

1function map_center_changed(){var e=this.getGeocoder();if(e){var t=this.getMap().getCenter();e.geocode({latLng:t},function(e,t){$(".map-error").is(":visible")&&$(".map-error").hide(),t==google.maps.GeocoderStatus.OK?e[0]&&($(".map-center").is(":visible")||$(".map-center, .map-info").show(),$(".map-info").html(e[0].formatted_address)):$(".map-info").html("")})}}function map_search(e,i){if(""!=e&&i){var s=i.getMap(),t=i.getGeocoder();s&&t&&(0==i.opts.provider?t.geocode({address:e},function(e,t){if($(".map-error").is(":visible")&&$(".map-error").hide(),t==google.maps.GeocoderStatus.OK){var o=e[0];o&&($(".map-center").is(":visible")||$(".map-center, .map-info").show(),$(".map-info").html(o.formatted_address),i.gc_marker&&i.gc_marker.setMap(null),o.geometry.viewport?s.fitBounds(o.geometry.viewport):(s.setCenter(o.geometry.location),s.setZoom(17)),i.gc_marker=new google.maps.Marker({position:o.geometry.location,map:s}))}else $(".map-center, .map-info").hide(""),$(".map-error").show()}):t.geocode(e,function(e){if($(".map-error").is(":visible")&&$(".map-error").hide(),0<e.length){var t=e[0];t&&($(".map-center").is(":visible")||$(".map-center, .map-info").show(),$(".map-info").html(t.name),t.bbox?s.fitBounds(t.bbox):s.setView(t.center,17),L.Icon.Default.imagePath="/build/packs/images",L.marker(t.center).addTo(s))}else $(".map-center, .map-info").hide(""),$(".map-error").show()},i))}}function init_map_search(o,e){var i=o.getMap(),s=o.getGeocoder();if(o&&s){var r=$("input",$(e));if(0==o.opts.provider){var a=new google.maps.places.Autocomplete($(r).get(0));a.bindTo("bounds",o),o.autocomplete=a,google.maps.event.addListener(a,"place_changed",function(){var e=a.getPlace();if(e.geometry){e.geometry.viewport?i.fitBounds(e.geometry.viewport):(i.setCenter(e.geometry.location),i.setZoom(17));var t=new google.maps.MarkerImage(e.icon,new google.maps.Size(71,71),new google.maps.Point(0,0),new google.maps.Point(17,34),new google.maps.Size(35,35));o.gc_marker&&o.gc_marker.setMap(null),o.gc_marker=new google.maps.Marker({icon:t,position:e.geometry.location,map:i})}else map_search($(r).val(),o)})}else $(r).autocomplete({appendTo:"#"+$(e).attr("id"),source:function(e,t){s.geocode(e.term,function(e){t($.map(e,function(e){return{value:e.name,label:e.name,bbox:e.bbox,center:e.center}})),console.info(e)},o)},select:function(e,t){t.item.bbox?i.fitBounds(t.item.bbox):i.setView(t.item.center,17),L.Icon.Default.imagePath="/build/packs/images",L.marker(t.item.center).addTo(i)},delay:100,minLength:2});$(e).on("submit",function(){return map_search($(r).val(),o),!1}),$(e).on("click",".map-find-button",function(){return map_search($(r).val(),o),!1})}}function create_map_info(t,o,i){return t.html?t.html:($.ajax({url:"/map.php",type:"GET",data:{page:"hotel",id:t.id,price:t.mr,ui:travel.opts.uuid}}).done(function(e){t.html=e,map_mouse.call(o,i)}).fail(function(e){404!==e.status&&setTimeout(function(){create_map_info(t,o,i)},1e3)}),"")}function map_mouse(e){if(e&&e.marker&&e.type&&e.id&&e.event){var t=Math.floor(travel.opts.theme/100),o=this.getMap();if(o){if(0==this.opts.provider)var i=this.helper.getProjection().fromLatLngToContainerPixel(e.marker.getPosition()),s=o.getDiv();else i=o.latLngToContainerPoint(e.marker.getLatLng()),s=o.getContainer();$(s).offset();var r=travel.opts.page,a=$("#map-info-win");a.size()||(a=$("<div />").attr("id","map-info-win")).appendTo("map"==r?".js-map-cont":"body");travel.modules.translation,travel.opts.curr;if("click"==e.event){var n=[];if("hotel"==e.type)n=create_map_info(this.hotels.list[e.id],this,e);else if("landmark"==e.type){var l=this.landmarks.list[e.id];n.push('<div class="landmarkblock lm-'),n.push(l.t),n.push('">'),n.push('<div class="title">'),n.push("<h3>"),n.push(l.name),n.push("</h3>"),n.push("</div>"),n.push("</div>")}var d="";if(""!=(d="Array"==typeof n?n.join(""):n)){a.html(d);var p,h=0;h=Math.floor(i.y-a.height()-12),9==t&&(h=Math.floor(i.y)),p=Math.floor(i.x-a.width()/2),a.css({top:h+"px",left:p+"px"}).show(),travel.modules.gallery.initCarousels(a)}}}}}function init_map_legend(){$(".map-legend-label").off("click").on("click",function(){$(this).hide();
1var e=$(this).parent();$(".map-legend",e).show()}),$(".map-legend .close-legend").off("click").on("click",function(){var e=$(this).closest(".map-legend");e.hide();var t=e.parent();$(".map-legend-label",t).show()}),$(".map-legend-label").show()}function map_close_popup(e){$("#map-info-win").hide()}var ___template_node,__get_template_node=function(e,t){___template_node||((___template_node=document.createElementNS("http://www.w3.org/2000/svg","text")).setAttribute("text-anchor","middle"),___template_node.setAttribute("font-weight","bold"),___template_node.setAttribute("font-family","Verdana, sans-serif"),___template_node.setAttribute("font-size","12"),___template_node.setAttribute("stroke-opacity","null"),___template_node.setAttribute("stroke-width","0"),___template_node.setAttribute("stroke","#000"),___template_node.setAttribute("fill","#ffffff"),___template_node.setAttribute("width","10"),___template_node.setAttribute("x","18"),___template_node.setAttribute("y","17"));var o=___template_node.cloneNode(!0);return o.appendChild(document.createTextNode(e)),$.each(t||{},function(e,t){o.setAttribute(e,t)}),o},__node=__get_template_node("{{text}}"),__wrap=document.createElement("div");__wrap.appendChild(__node);var __template_text=__wrap.innerHTML,__width1=0;function get_text_width(e){var t=e.length;if(0==t)return 0;if(0!=__width1)return __width1*t;var o=$("#marker_svg");o.length||($('<svg id="marker_svg" />').appendTo($("body")),o=$("#marker_svg"));var i=__get_template_node("0",{id:"svg_text"});return o.empty()[0].appendChild(i),__width1=parseInt(i.getBBox().width),o.detach(),__width1*t}function getSvg(e,t){var o=t||"#004d8c",i=get_text_width(e);return'<svg width="'+(i+22)+'" height="34" xmlns="http://www.w3.org/2000/svg">\t<defs>\t\t<filter id="svg_2_blur">\t\t\t<feGaussianBlur stdDeviation="0" in="SourceGraphic"/>\t\t</filter>\t\t<filter id="svg_3_blur">\t\t\t<feGaussianBlur stdDeviation="0" in="SourceGraphic"/>\t\t</filter>\t</defs>\t<g>\t\t<title>background</title>\t\t<rect x="-1" y="-1" width="64" height="36" id="canvas_background" fill="none"/>\t</g>\t<g>\t\t<rect filter="url(#svg_2_blur)" rx="5" stroke="#000" height="24.999992" width="'+(i+18)+'" y="0.750002" x="0.821444" stroke-width="0" fill= "'+o+'" />
1\t\t<path filter="url(#svg_3_blur)" stroke="#000" transform="rotate(-180 0,27.528299331665036) " id="svg_path" d="m-'+(i/2+11+6)+'.678581,33.956869l7.499997,-12.85714l7.499997,12.85714l-14.999995,0z" stroke-opacity="null" stroke-width="0" fill= "'+o+'"/>\t\t'+__template_text.replace("{{text}}",e).replace('x="18"','x="'+(i+18)/2+'"')+"\t</g></svg>"}function get_price_icon(e){var t,o=travel.opts.type,i=Math.floor(travel.opts.theme/100),s=travel.opts.curr+" "+e;return t=8!=i&&10!=i||"destination"!=o?3!=i&&60!=i||"destination"!=o?9==i&&"destination"==o?getSvg(s,"#2d5fa5"):getSvg(s):getSvg(s,"#f68059"):getSvg(s,"#FF7F36"),{url:"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(t)}}var __markers_cache=[];function get_custom_marker(e,t,o){if(o)return e;var i=t.mr;0==i&&(i=100+Math.floor(50*Math.random()),i=Math.floor(i/travel.opts.curr_rate),t.mr=i);var s="hotel-svg-"+i,r=__markers_cache[s];return r||((e=get_price_icon(i))._key=s,__markers_cache[s]=e)}function MapObject(e){this.opts=e||{}}function HotelMap(e){if(this.opts={version:"1",language:{id:"1",code:"en"},labels:{hotels:"Hotels",landmarks:"Landmarks",book_now:"Book now"},containers:{map:"#map-container"},provider:0,urls:{list:"map_list",hotels_avail:"/?page=map_avail",hotel_avail:"/?page=map_havail",hotelinfo:"/?page=map_hotel&id=[ID]",hotel:"/?page=hotel&hotelID=[ID]&prevurl=1"},markers:{normal:{class:"mh-marker-empty",center_offset_x:5,center_offset_y:5},advanced:{class:"mh-marker",center_offset_x:19,center_offset_y:37},landmark:{class:"mh-marker",center_offset_x:19,center_offset_y:37},adv_landmark:{class:"mh-marker",center_offset_x:19,center_offset_y:69}},orderby:0,orderhow:1,zoom:2,history:0,history_prefix:"map",timer:500,limit:10,max_pages:11,callbacks:{},avail:{},ajax_traditional:!0,min_zoom:12},"object"==typeof e&&$.extend(this.opts,e),0==e.provider){if("undefined"==typeof google||void 0===google.maps)return!1}else if("undefined"==typeof L)return!1;if(1===e.debug&&void 0!==window.console?this._debug=window.console:this._debug={info:function(){},time:function(){},timeEnd:function(){}},this.search_list_active=!1,this.hotels={},this.hotels.list={},this.hotels.cids=[],this.hotels.vids=[],this.hotels.markers=[],this.landmarks={},this.landmarks.list={},this.landmarks.cids=[],this.landmarks.markers=[],this.loaded_codes={},this.hotel_load_timer=void 0,this.marker_images={},this.initMarkerImages(),this.cluster=null,0==e.provider?(this.opts.type=google.maps.MapTypeId.ROADMAP,this.map_center=new google.maps.LatLng(0,0),e.center&&(this.map_center=new google.maps.LatLng(e.center.lat,e.center.lon),this.opts.zoom=e.center.zoom)):(this.opts.type=0,this.map_center=new L.latLng(0,0),e.center&&(this.map_center=new L.latLng(e.center.lat,e.center.lon),this.opts.zoom=e.center.zoom)),0==e.provider){var t={zoom:this.opts.zoom,mapTypeId:this.opts.type,streetViewControl:!0,styles:[{featureType:"poi.business",elementType:"labels",stylers:[{visibility:"off"}]}]};this.get("lite")&&$.extend(t,{mapTypeId:google.maps.MapTypeId.ROADMAP,scaleControl:!0,mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.DROPDOWN_MENU}}),this.map=window.travel.city_map,this.geocoder=new google.maps.Geocoder,this.cluster=null,this.helper=new google.maps.OverlayView,this.helper.setMap(this.map),this.helper.draw=function(){this.ready||(this.ready=!0,google.maps.event.trigger(this,"ready"))}}else this.map=window.travel.city_map,this.geocoder=new L.Control.Geocoder.Nominatim,this.cluster=null,this.helper=null;this.timeoutHandler=null;var a=this;if(0==e.provider?(google.maps.event.addListener(this.map,"center_changed",function(){a._debug.info("mapevent center_changed"),a.set("center_changed",1),a.trigger("center_changed","")}),google.maps.event.addListener(this.map,"zoom_changed",function(){a._debug.info("mapevent zoom_changed"),a.set("zoom_changed",1),a.trigger("zoom_changed","")}),google.maps.event.addListener(this.map,"idle",function(){a._debug.info("mapevent map_idle"),this.get("ready_load")||(a.trigger("ready"),this.set("ready_load",1));var e=a.get("zoom_changed"),t=a.get("center_changed");(e||t)&&(a._debug.info("map_idle: call update"),a.updateHash(),a.updateMap(),a.trigger("map_idle"),a.trigger("map_changed"),e&&(a.trigger("zoom_changed"),a.updateMarkers()),t&&a.trigger("center_changed"))}),google.maps.event.addListener(this.map.getStreetView(),"visible_changed",function(){a._debug.info("visible_changed");var e=a.map.getStreetView().getVisible();a.trigger("sv_visi_change",{visible:e,map:a})}),google.maps.event.addListener(this.map,"click",function(){a._debug.info("click"),a.trigger("click","")})):(this.map.on("moveend",function(e){a._debug.info("mapevent center_changed"),a.set("center_changed",1),a.trigger("center_changed",""),window.clearTimeout(a.timeoutHandler),a.timeoutHandler=window.setTimeout(function(){a.map.fire("idle")},500)}),this.map.on("zoomend",function(e){a._debug.info("mapevent zoom_changed"),a.set("zoom_changed",1),a.trigger("zoom_changed","")}),this.map.on("idle",function(e){a._debug.info("mapevent map_idle"),a.get("ready_load")||(a.trigger("ready"),a.set("ready_load",1));var t=a.get("zoom_changed"),o=a.get("center_changed");(t||o)&&(a._debug.info("map_idle: call update"),a.updateHash(),a.updateMap(),a.trigger("map_idle"),a.trigger("map_changed"),t&&(a.trigger("zoom_changed"),a.updateMarkers()),o&&a.trigger("center_changed"))}),this.map.on("click",function(e){a._debug.info("click"),a.trigger("click","")})),0==e.provider?this.map.setCenter(this.map_center):(this.map.setVie
1w(this.map_center),a.set("zoom_changed",1),window.clearTimeout(a.timeoutHandler),a.timeoutHandler=window.setTimeout(function(){a.map.fire("idle")},500)),this.parseHash(),e.bounds&&0==e.provider){var n=e.bounds;if(""!=n.ccode&&"RU"!=n.ccode){var l=this.getMap(),o=n.name;""!=o&&(o+=","),o+=n.ccode,this.geocoder.geocode({address:o},function(e,t){if(t==google.maps.GeocoderStatus.OK){var o=e[0];if(""==n.name)for(var i=e.length,s=0;s<i;++s){var r=e[s];if(1==r.address_components.length&&"country"==r.address_components[0].types[0]){o=r;break}}o&&!o.partial_match?o.geometry.viewport?l.fitBounds(o.geometry.viewport):o.geometry.bounds?l.fitBounds(o.geometry.bounds):(l.setCenter(o.geometry.location),l.setZoom(17)):a.fitOptsBounds()}else a.fitOptsBounds()})}else this.fitOptsBounds()}else if((e.hotel||e.landmark)&&0==e.provider){var i=new google.maps.LatLngBounds;e.hotel&&i.extend(new google.maps.LatLng(e.hotel.lat,e.hotel.lng)),e.hotel?e.landmark?(i.extend(new google.maps.LatLng(e.landmark.lat,e.landmark.lng)),this.getMap().fitBounds(i)):(this.getMap().setCenter(new google.maps.LatLng(e.hotel.lat,e.hotel.lng)),this.getMap().setZoom(16)):(this.getMap().setCenter(new google.maps.LatLng(e.landmark.lat,e.landmark.lng)),this.getMap().setZoom(13)),e.hotel&&(this.set("hide_hotels",1),this.set("hide_landmarks",1))}this.trigger("map_loaded"),$.ajaxSettings.traditional=this.opts.ajax_traditional,this.addControls()}MapObject.prototype.get=function(e){return void 0===this.opts[e]?null:this.opts[e]},MapObject.prototype.set=function(e,t){this.opts[e]=t},HotelMap.prototype=new MapObject,HotelMap.prototype.trigger=function(e,t){this._triggerTimers||(this._triggerTimers=[]);var o=this._triggerTimers[e];o&&clearTimeout(o);var i=this,s=300;"click"!=e&&"mouse"!=e||(s=50),this._triggerTimers[e]=setTimeout(function(){i.triggerReal(e,t)},s)},HotelMap.prototype.triggerReal=function(e,t){this._debug.info("trigger ",e),"function"==typeof this.opts.callbacks[e]&&(this._debug.info("trigger call ",e),this.opts.callbacks[e].call(this,t))},HotelMap.prototype.getGeocoder=function(){return this.geocoder},HotelMap.prototype.fitOptsBounds=function(){var t=this.opts,o=this.getMap();
1if(t.bounds){var e=new google.maps.LatLng(t.bounds.nwlat,t.bounds.selng),i=new google.maps.LatLng(t.bounds.selat,t.bounds.nwlng),s=new google.maps.LatLngBounds(i,e);if(o.fitBounds(s),t.dbc){new google.maps.Rectangle({bounds:s,map:o,fillColor:"#0f0"});for(var r=t.dbc.length,a=0;a<r;++a){var n=t.dbc[a];new google.maps.Rectangle({bounds:new google.maps.LatLngBounds(new google.maps.LatLng(n.lat,n.lng),new google.maps.LatLng(n.c[2],n.c[3])),fillColor:"#f00",map:o}),new google.maps.Marker({position:new google.maps.LatLng(n.lat,n.lng),title:n.name,map:o})}}t.newzoom=1,google.maps.event.addListener(o,"",function(){if(t.newzoom){t.newzoom=void 0;var e=o.getZoom()+1;15<e&&(e=15),o.setZoom(e)}})}},HotelMap.prototype.addControls=function(){},HotelMap.prototype.resize=function(){this._debug.info("resize"),0==this.opts.provider?google.maps.event.trigger(this.map,"resize"):this.map.fire("resize")},HotelMap.prototype.hideHotels=function(){this._debug.info("hide hotels"),this.markerClusterer.clearMarkers(),this.set("hide_hotels",1)},HotelMap.prototype.showHotels=function(){this._debug.info("show hotels"),this.markerClusterer.setMap(this.getMap()),this.set("hide_hotels",0)},HotelMap.prototype.getDefaultHotel=function(){return this.get("hotel")},HotelMap.prototype.getDefaultLandmark=function(){return this.get("landmark")},HotelMap.prototype.updateHash=function(){if(this._debug.info("updateHash"),this.opts.history){var e,t=this.opts.history_prefix;if(0==this.opts.provider)t+="-[",t+=(e=this.map.getCenter()).lat(),t+=",",t+=e.lng(),t+=",",t+=this.map.getZoom(),t+="]";else t+="-[",t+=(e=this.map.getCenter()).lat,t+=",",t+=e.lng,t+=",",t+=this.map.getZoom(),t+="]";void 0!==this.opts.containers.searchtext&&$(this.opts.containers.searchtext).size()&&!$(this.opts.containers.searchtext).hasClass("default-value")&&""!=$(this.opts.containers.searchtext).val()&&(t+="-s[",t+=$(this.opts.containers.searchtext).val(),t+="]"),window.location.hash=t}},HotelMap.prototype.parseHash=function(){if(this.opts.history){this._debug.info("parseHash");var e=decodeURI(window.location.hash),t=this.opts.history_prefix+"-[",o=e.indexOf(t);if(!(o<0)){var i=e.indexOf("]",o+t.length+1);if(!(i<0)){var s=e.substring(o+t.length,i);if(!((o=s.indexOf(","))<0)){var r=s.substring(0,o),a=s.indexOf(",",o+1);if(!(a<0)){var n=s.substring(o+1,a),l=Math.floor(s.substring(a+1,s.length));if(0==this.opts.provider){var d=new google.maps.LatLng(r,n);this.map.setCenter(d),this.map.setZoom(l)}else{d=new L.latLng(r,n);this.map.setView(d,l)}if(!((o=e.indexOf("-s[",i+1))<0||(i=e.indexOf("]",o+1))<0)){var p=e.substring(o+3,i);void 0!==this.opts.containers.searchtext&&($(this.opts.containers.searchtext).removeClass("default-value").attr("val",$(this).val()).val(p),this.updateHash())}}}}}}},HotelMap.prototype.getGeocodes=function(e,t,o,i,s){this._debug.time("getGeocodes");if(!(e<-90||90<e||o<-90||90<o||t<-180||180<t||i<-180||180<i)){if(e+=90,o+=90,(i+=180)<(t+=180))this.getGeocodes(e-90,t-180,o-90,180,s),this.getGeocodes(e-90,-180,o-90,i-180,s);else{var r=Math.floor(20*e),a=Math.floor(20*t),n=Math.floor(20*o),l=Math.floor(20*i);if(1e4<(n-r)*(l-a))return;for(var d=r;d<=n;++d)for(var p=a;p<=l;++p){var h=360*d*20+p;s.push(h)}}this._debug.timeEnd("getGeocodes")}},HotelMap.prototype.initMarkerImages=function(){var e=["","sm"],t=["other","page","current"];for(si in e){var o=e[si];for(ti in t){var i="hotel";""!=(n=t[ti])&&(i+="-"+n),""!=o&&(i+="-"+o);var s="/images/";if(this.opts.images_prefix&&(s+=this.opts.images_prefix,s+="/"),s+="map/"+i+".png",0==this.opts.provider)var r=new google.maps.MarkerImage(s);else{var a=L.point(5,5);""==o&&(a=L.point(10,20));r=L.icon({iconUrl:s,iconAnchor:a})}r._key=i,this.marker_images[i]=r}}t=["airport","business","museum","railway","sm","attraction","general","park","sport","citycenter","metro","food"];for(ti in t){var n;i="landmark";""!=(n=t[ti])&&(i+="-"+n);s="/images/";if(this.opts.images_prefix&&(s+=this.opts.images_prefix,s+="/"),s+="map/"+i+".png",0==this.opts.provider)r=new google.maps.MarkerImage(s);else a=L.point(10,20),r=L.icon({iconUrl:s,iconAnchor:a});r._key=i,this.marker_images[i]=r}},HotelMap.prototype.processClickHotel=function(e){var t=this.hotels.list[e];if(t&&t.url){var o=t.url;-1==o.indexOf("//")&&(o=window.location.protocol,o+="//",o+=window.location.host,o+=t.url),window.open(o)}},HotelMap.prototype.processClickLandmark=function(e){var t=this.landmarks.list[e];if(t&&t.u){var o=window.location.protocol;o+="//",o+=window.location.host,o+=t.u,window.open(o)}},HotelMap.prototype.processMarkerMouse=function(e,t,o){if(0==this.opts.provider){var i=google.maps.Marker.MAX_ZINDEX;"click"==o||("mouseover"==o?((!e.getZIndex()||e.getZIndex()<i)&&(e.set("_old_zindex",e.getZIndex()),e.setZIndex(i+100)),this.trigger(t+"_mouseover",e.get("_id"))):(e.setZIndex(e.get("_old_zindex")),this.trigger(t+"_mouseout",e.get("_id")))),this.trigger("mouse",{marker:e,event:o,id:e.get("_id"),t
1ype:t})}else{i=1e7;"click"==o||("mouseover"==o?((!e.options.zIndexOffset||e.options.zIndexOffset<i)&&(e.options._old_zindex=e.options.zIndexOffset,e.setZIndexOffset(i+100)),this.trigger(t+"_mouseover",e.options._id)):(e.setZIndexOffset(e.options._old_zindex),this.trigger(t+"_mouseout",e.options._id))),this.trigger("mouse",{marker:e,event:o,id:e.options._id,type:t})}},HotelMap.prototype.updateMarkers=function(){this._debug.info("updateMarkers start"),this._debug.time("updateMarkers");var e=this,t=this.map,o=t.getZoom(),i=0,s=[],r=this.get("selected_hotel"),a=this.hotels.vids.length;for(n in this.hotels.list){(p=this.hotels.list[n]).mtype="other",r&&p.id==r&&!p.selected&&(p.mtype="current"),p.visible=a?0:1,0}for(var n=0;n<a;++n){(p=this.hotels.list[this.hotels.vids[n]])&&(p.visible=1)}if(this.hotels.cids){var l=this.hotels.cids.length;for(n=0;n<l;++n){void 0!==(p=this.hotels.list[this.hotels.cids[n]])&&("other"==p.mtype&&(p.mtype="page"))}}var d=this.get("custom_marker");for(n in this.hotels.list){var p,h="hotel-"+(p=this.hotels.list[n]).mtype;i&&"current"!=p.mtype&&(h+="-sm");var g=this.marker_images[h];if(0==this.opts.provider)"function"==typeof d&&(h=(g=d(g,p,i))._key);else if("function"==typeof d&&(iconc=d(g,p,i),h=iconc._key,!i)){var m=L.point((get_text_width("$"+p.mr)+22)/2,34);(g=L.icon({iconUrl:iconc.url,iconAnchor:m}))._key=h}if(void 0===p.marker||null==p.marker){if("NULL"==p.lat||"NULL"==p.lng)continue;if(0==this.opts.provider){var c=new google.maps.LatLng(p.lat,p.lng),u=new google.maps.Marker({position:c,icon:g,_show:p.visible,_id:p.id,zIndex:Math.round(Math.log(10*(p.r+1)))});p.marker=u,google.maps.event.addListener(u,"click",function(){e.processMarkerMouse(this,"hotel","click")}),google.maps.event.addListener(u,"mouseover",function(){e.processMarkerMouse(this,"hotel","mouseover")}),google.maps.event.addListener(u,"mouseout",function(){e.processMarkerMouse(this,"hotel","mouseout")})}else{c=L.latLng(p.lat,p.lng);(u=L.marker(c,{icon:g,_id:p.id,zIndexOffset:Math.round(Math.log(10*(p.r+1)))}))._show=p.visible,(p.marker=u).on("click",function(){e.processMarkerMouse(this,"hotel","click")}),u.on("mouseover",function(){e.processMarkerMouse(this,"hotel","mouseover")}),u.on("mouseout",function(){e.processMarkerMouse(this,"hotel","mouseout")})}}else{if(p.marker._show=p.visible,0==this.opts.provider)p.marker.getIcon()._key!=h&&p.marker.setIcon(g);else p.marker.options.icon._key!=h&&p.marker.setIcon(g)}if(0==this.opts.provider)if("current"==p.mtype){var f=google.maps.Marker.MAX_ZINDEX;p.marker.set("_old_zindex",p.marker.getZIndex()),p.marker.setZIndex(f+1)}else p.marker.getZIndex()>f&&p.marker.setZIndex(p.marker.get("_old_zindex"));p.marker._show&&s.push(p.marker)}var _=100;if(15<o?_=40:14<o?_=50:13<o&&(_=75),this._debug.info("zoom",o),this._debug.info("gridSize",_),0==this.opts.provider)if(null==this.cluster){this.cluster=new MarkerClusterer(t,s,{gridSize:_,maxZoom:17,zoomOnClick:!0,averageCenter:!0,minimumClusterSize:2,styles:[{url:"/images/map/lb-small-a1673334fb.png",width:24,height:28,anchor:[6,28],textColor:"#fff",textSize:12},{url:"/images/map/lb-middle-075405b58e.png",width:32,height:37,anchor:[9,37],textColor:"#fff",textSize:13},{url:"/images/map/lb-big-434fb2258c.png",width:48,height:56,anchor:[17,56],textColor:"#fff",textSize:14}]})}else{var v=this.cluster;v.clearMarkers(),v.addMarkers(s),v.getGridSize()!=_&&(this._debug.info("new gridSize",_),v.setGridSize(_),v.repaint())}else{null==this.cluster&&(this.cluster=L.markerClusterGroup({chunkedLoading:!0}),t.addLayer(this.cluster)),this.cluster.clearLayers();for(n=0,l=s.length;n<l;++n)this.cluster.addLayer(s[n])}this._debug.timeEnd("updateMarkers")},HotelMap.prototype.fitView=function(e){if(this._debug.info("fitView"),0==this.opts.provider){for(var t=new google.maps.LatLngBounds,o=this.hotels.cids.length,i=!1,s=0;s<o;++s){void 0!==(n=this.hotels.list[this.hotels.cids[s]])&&("NULL"!=typeof n.lat&&"NULL"!=n.lng&&(i=!0,t.extend(new google.maps.LatLng(n.lat,n.lng))))}if(i){var r=this.getMap();r.fitBounds(t),e&&r.getZoom()>e&&r.setZoom(e)}}else{var a=[];for(s in this.hotels.list){var n;(n=this.hotels.list[s]).marker._show&&a.push(n.marker)}if(a.length){t=L.featureGroup(a).getBounds();this.getMap().fitBounds(t)}}},HotelMap.prototype.clearAll=function(){var e=this.cluster;e&&(0==this.opts.provider?e.clearMarkers():e.clearLayers());for(var t=this.hotels.markers.length,o=0;o<t;++o)this.hotels.markers[o]&&(0==this.opts.provider?this.hotels.markers[o].setMap(null):this.map.removeLayer(hotels.markers[o]),this.hotels.markers[o]=null);this.hotel_markers=[];for(t=this.landmarks.markers.length,o=0;o<t;++o)this.landmarks.markers[o]&&(0==this.opts.provider?this.landmarks.markers[o].setMap(null):this.map.removeLayer(landmarks.markers[o]),this.landmarks.markers[o]=null);this.landmarks.markers=[],this.hotels.codes={},this.landmarks.codes={}},HotelMap.prototype.updateMap=function(e){if(this._debug.info("updateMap start"),!this.get("disable_load_hotels")||!this.get("disable_load_landmarks")){var t=this.get("load_timer");t&&(this._debug.info("clear timer"),clearTimeout(t),this.set("load_timer",null));var o=this.get("load_xhr");o&&(o.abort(),this.set("load_xhr",null));var i=this.map.getZoom(),s=this.get("min_zoom"),r=this.get("brand");if(!r||!this.get("brand_loaded"))if(i<s&&!r)this.clearAll();else{var a=this.map.getBounds();
1if(void 0!==a&&a){var n=a.getSouthWest(),l=a.getNorthEast(),d=[];r||(0==this.opts.provider?this.getGeocodes(n.lat(),n.lng(),l.lat(),l.lng(),d):this.getGeocodes(n.lat,n.lng,l.lat,l.lng,d));for(var p=[],h=0;h<d.length;++h){var g=d[h];this.loaded_codes[g]||p.push(g)}if(this._debug.info("geocodes to load",p),p.length||r){var m=this.get("urls").list,c=new Date,u={shl:this.get("disable_load_landmarks")?0:1,shh:this.get("disable_load_hotels")?0:1,ll:500,r:c.getTime(),ui:travel.opts.uuid};r?(this.set("brand_loaded",!0),u.brand=this.opts.brand):u.geocodes=p.join(","),this._debug.info("load",m,u);var f=this;this._debug.time("load"),this.set("load_xhr",$.ajax({url:m,data:u,type:"POST",dataType:"json",error:function(e,t,o){f._debug.info("ERROR: ",e,t,o)},success:function(e,t){if(f._debug.timeEnd("load"),void 0!==e){for(var o=p.length,i=0;i<o;++i){var s=p[i];f.loaded_codes[s]=1}if(!f.get("disable_load_hotels")&&void 0!==e.hotels)for(o=e.hotels.length,i=0;i<o;++i){var r=e.hotels[i];f.hotels.list[r.id]=r,f.hotels.cids.push(r.id)}if(!f.get("disable_load_landmarks")&&void 0!==e.landmarks){o=e.landmarks.length;for(i=0;i<o;++i){var a=e.landmarks[i];f.landmarks.list[a.id]=a,f.landmarks.cids.push(a.id)}}f.updateMarkers(),f._debug.info("hotels",f.hotels,"landmarks",f.landmarks),f.set("load_xhr",null),f._debug.info("load end")}}}))}this._debug.info("updateMap end")}}}},HotelMap.prototype.getMap=function(){return void 0===this.map?null:this.map},HotelMap.prototype.setHotelsList=function(e){for(i in this.hotels.list){var t=this.hotels.list[i];t.marker&&(0==this.opts.provider?t.marker.setMap(null):this.map.removeLayer(t.marker),t.marker=null)}e?(this.hotels.list={},$.extend(!0,this.hotels.list,e)):this.hotels.list={}},HotelMap.prototype.setHotelsCids=function(e){e?(this.hotels.cids=[],$.extend(!0,this.hotels.cids,e)):this.hotels.cids=[],this.hotels.cids.sort()},HotelMap.prototype.setHotelsVids=function(e){e?(this.hotels.vids=[],$.extend(!0,this.hotels.vids,e)):this.hotels.vids=[],this.hotels.vids.sort()},HotelMap.prototype.setSelectedHotel=function(e){this.set("selected_hotel",e)};

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.