PageSourceSearch

https://americanproperties.net/wp-content/themes/wpresidence/js/google_js/wpestate_marker.js?ver=1.0

js americanproperties.net collected 2026-09-29 11:36:58 UTC 5,784 bytes, 180 lines download raw bytes

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 bvbbv '+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.addHoverClass = function() {
108        if (this.div) {
109            this.temphover= this.div.className;
110            this.div.className =this.div.className+" openstreet_price_marker_on_click ";
111        }
112    };
113    WpstateMarker.prototype.removeHoverClass = function() {
114     
115        if (this.div) {
116            if(typeof(this.temphover)!='undefined'){
117                this.temphover.replace('openstreet_price_marker_on_click','');      
118                this.div.className =  this.temphover;            
119            } 
120        }
121    };
122
123
124
125    WpstateMarker.prototype.setPosition = function(newlatlng) {
126        this.position=newlatlng;
127        var point = this.getProjection().fromLatLngToDivPixel(this.position);
128
129        if (point) {
130            this.div.style.left = (point.x+0 ) + 'px';
131            this.div.style.top = (point.y ) + 'px';
132        }
133    };
134        
135    WpstateMarker.prototype.getDraggable = function() {
136        return false;	
137    };
138
139    WpstateMarker.prototype.getVisible  = function() {
140        return this.visible;
141    };
142
143    WpstateMarker.prototype.getMap  = function() {
144        return this.map;
145    };
146
147     WpstateMarker.prototype.setmap  = function(map) {
148         this.map=map;
149    };
150
151
152    WpstateMarker.prototype.getZIndex  = function() {
153        return this.zIndex;
154    };
155
156    WpstateMarker.prototype.setZIndex = function(value) {
157       this.zIndex=value;
158    };
159
160    WpstateMarker.prototype.setVisible  = function(value) {
161        this.visible=value;
162    };
163
164    WpstateMarker.prototype.getBounds = function()  {
165        return new google.maps.LatLngBounds(this.position, this.position); 
166    };
167
168
169    WpstateMarker.prototype.fromLatLngToDivPixel=function(){
170
171    }
172
173function wpestate_makeSafeForCSS(name) {
174    return name.replace(/[^a-z0-9]/g, function(s) {
175        var c = s.charCodeAt(0);
176        if (c == 32) return '-';
177        if (c >= 65 && c <= 90) return  s.toLowerCase();
178        return  ('000' + c.toString(16)).slice(-4);
179    });
180}

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.