1/* Thu 11 May 2017 08:40:57 BST */ 2/* Copyright (C) WpEstate, Inc - All Rights Reserved 3 * Unauthorized copying of this file, via any medium is strictly prohibited 4 * Proprietary and confidential 5 * Written by WpEstate august 2017 6 */ 7 8function WpstateMarker(poss,latlng, map,title,counter,image,id,price,pin_price,single_first_type,single_first_action,link,i,rooms,baths,cleanprice,size,single_first_type_name,single_first_action_name,pin,infoWindowIndex) { 9 10 11 12 this.position = latlng; 13 this.title = title; 14 this.zIndex = counter; 15 this.image = image; 16 this.idul = id; 17 this.price = price; 18 this.pin_price = pin_price; 19 this.category = single_first_type; 20 this.action = single_first_action; 21 this.link = link; 22 this.infoWindowIndex = i; 23 this.rooms = rooms; 24 this.baths = baths; 25 this.cleanprice = cleanprice; 26 this.size = size; 27 this.category_name = single_first_type_name; 28 this.action_name = single_first_action_name; 29 this.visible = true; 30 this.draggable = false; 31 this.optimized = true; 32 this.opacity = 1.0; 33 this.pin = pin; 34 this._omsData = null; 35 this.spiderfied = false; 36 this.div_ = null; 37 this.map_ = map; 38 this.setMap(map); 39 40 41} 42 43 if(typeof google != 'undefined' && google){ 44 WpstateMarker.prototype = new google.maps.OverlayView(); 45 } 46 47 WpstateMarker.prototype.onAdd = function() { 48 }; 49 50 WpstateMarker.prototype.draw = function() { 51 52 var self = this; 53 var div = this.div; 54 55 if (!div) { 56 div = this.div = document.createElement('div'); 57 div.className = 'wpestate_marker '+wpestate_makeSafeForCSS(this.category_name.trim() )+' '+wpestate_makeSafeForCSS(this.action_name.trim())+' class_' +wpestate_makeSafeForCSS(this.category_name.trim() )+' class_'+wpestate_makeSafeForCSS(this.action_name.trim()); 58 if (typeof(self.price) !== 'undefined') { 59 if( mapfunctions_vars.use_price_pins_full_price==='no'){ 60 div.innerHTML ='<div class="interior_pin_price">'+self.pin_price+'</div>'; 61 }else{ 62 div.innerHTML ='<div class="interior_pin_price">'+self.price+'</div>'; 63 } 64 } 65 66 google.maps.event.addDomListener(div, "mouseout", function(event) { 67 google.maps.event.trigger(self, "mouseout"); 68 self.div.classList.remove("hover_z_pin"); 69 }); 70 71 google.maps.event.addDomListener(div, "click", function(event) { 72 event.stopPropagation(); 73 google.maps.event.trigger(self, "click"); 74 }); 75 76 google.maps.event.addDomListener(div, "mouseover", function(event) { 77 google.maps.event.trigger(self, "mouseover"); 78 self.div.className +=' hover_z_pin '; 79 }); 80 81 82 var panes = this.getPanes(); 83 panes.overlayImage.appendChild(div); 84 } 85 86 87 var point = this.getProjection().fromLatLngToDivPixel(this.position); 88 89 if (point) { 90 91 div.style.left = (point.x+0 ) + 'px'; 92 div.style.top = (point.y -12) + 'px'; 93 } 94 }; 95 96 WpstateMarker.prototype.remove = function() { 97 if (this.div) { 98 this.div.parentNode.removeChild(this.div); 99 this.div = null; 100 } 101 }; 102 103 WpstateMarker.prototype.getPosition = function() { 104 return this.position; 105 }; 106 107 WpstateMarker.prototype.setPosition = function(newlatlng) { 108 this.position=newlatlng; 109 var point = this.getProjection().fromLatLngToDivPixel(this.position); 110 111 if (point) { 112 this.div.style.left = (point.x+0 ) + 'px'; 113 this.div.style.top = (point.y ) + 'px'; 114 } 115 }; 116 117 WpstateMarker.prototype.getDraggable = function() { 118 return false; 119 }; 120 121 WpstateMarker.prototype.getVisible = function() { 122 return this.visible; 123 }; 124 125 WpstateMarker.prototype.getMap = function() { 126 return this.map; 127 }; 128 129 WpstateMarker.prototype.setmap = function(map) { 130 this.map=map; 131 }; 132 133 134 WpstateMarker.prototype.getZIndex = function() { 135 return this.zIndex; 136 }; 137 138 WpstateMarker.prototype.setZIndex = function(value) { 139 this.zIndex=value; 140 }; 141 142 WpstateMarker.prototype.setVisible = function(value) { 143 this.visible=value; 144 }; 145 146 WpstateMarker.prototype.getBounds = function() { 147 return new google.maps.LatLngBounds(this.position, this.position); 148 }; 149 150 151 WpstateMarker.prototype.fromLatLngToDivPixel=function(){ 152 153 } 154 155function wpestate_makeSafeForCSS(name) { 156 return name.replace(/[^a-z0-9]/g, function(s) {
157 var c = s.charCodeAt(0); 158 if (c == 32) return '-'; 159 if (c >= 65 && c <= 90) return s.toLowerCase(); 160 return ('000' + c.toString(16)).slice(-4); 161 }); 162}
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.