PageSourceSearch

https://essays.discount/wp-content/themes/listingpro/assets/js/singlepostmap.js

js essays.discount collected 2026-10-06 13:17:36 UTC 11,895 bytes, 335 lines download raw bytes

1$siteURL=jQuery('#page').data("site-url");
2$pinicon=jQuery('#singlepostmap').data('pinicon');
3$mapboxDesign = jQuery('#page').data("mstyle");
4if($pinicon==="") {
5    $pinicon=$siteURL+"wp-content/themes/listingpro/assets/images/pins/pin.png";
6}
7
8if( jQuery('.singlebigmaptrigger').length !=0) {
9    $lat=jQuery('.singlebigmaptrigger').data("lat");
10    $lan=jQuery('.singlebigmaptrigger').data("lan");
11
12    "use strict";
13    $mtoken = jQuery('#page').data("mtoken");
14    if($mtoken != ''){
15
16
17
18        L.HtmlIcon = L.Icon.extend({
19            options: {
20                /*
21                html: (String) (required)
22                iconAnchor: (Point)
23                popupAnchor: (Point)
24                */
25            },
26
27            initialize: function(options) {
28                L.Util.setOptions(this, options);
29            },
30
31            createIcon: function() {
32                var div = document.createElement('div');
33                div.innerHTML = this.options.html;
34                if (div.classList)
35                    div.classList.add('leaflet-marker-icon');
36                else
37                    div.className += ' ' + 'leaflet-marker-icon';
38                return div;
39            },
40
41            createShadow: function() {
42                return null;
43            }
44        });
45
46
47        L.mapbox.accessToken = $mtoken;
48        var map = L.mapbox.map('singlepostmap', $mapboxDesign)
49            .setView([$lat,$lan], 17);
50
51        var markers = new L.MarkerClusterGroup();
52
53        var markerLocation = new L.LatLng($lat, $lan); // London
54
55        var CustomHtmlIcon = L.HtmlIcon.extend({
56            options : {
57                html : "<div class='lpmap-icon-shape pin '><div class='lpmap-icon-contianer'><img src='"+$pinicon+"'  /></div></div>",
58            }
59        });
60
61        var customHtmlIcon = new CustomHtmlIcon();
62
63        var marker = new L.Marker(markerLocation, {icon: customHtmlIcon}).bindPopup('').addTo(map);
64        markers.addLayer(marker);
65        map.fitBounds(markers.getBounds());
66
67        map.scrollWheelZoom.disable();
68        map.invalidateSize();
69
70
71    }else{
72        if($lan !='' && $lat !='') {
73            function init() {
74                var e= {
75                        zoom:17,
76                        scrollwheel:!1,
77                        center:new google.maps.LatLng($lat, $lan),
78                        styles:[ {
79                            featureType:"administrative",
80                            elementType:"labels.text.fill",
81                            stylers:[ {
82                                color: "#444444"
83                            }
84                            ]
85                        }
86                            ,
87                            {
88                                featureType:"landscape",
89                                elementType:"all",
90                                stylers:[ {
91                                    color: "#f2f2f2"
92                                }
93                                ]
94                            }
95                            ,
96                            {
97                                featureType:"poi",
98                                elementType:"all",
99                                stylers:[ {
100                                    visibility: "off"
101                                }
102                                ]
103                            }
104                            ,
105                            {
106                                featureType:"road",
107                                elementType:"all",
108                                stylers:[ {
109                                    saturation: -100
110                                }
111                                    ,
112                                    {
113                                        lightness: 45
114                                    }
115                                ]
116                            }
117                            ,
118                            {
119                                featureType:"road.highway",
120                                elementType:"all",
121                                stylers:[ {
122                                    visibility: "simplified"
123                                }
124                                ]
125                            }
126                            ,
127                            {
128                                featureType:"road.arterial",
129                                elementType:"labels.icon",
130                                stylers:[ {
131                                    visibility: "off"
132                                }
133                                ]
134                            }
135                            ,
136                            {
137                                featureType:"transit",
138                                elementType:"all",
139                                stylers:[ {
140                                    visibility: "off"
141                                }
142                                ]
143                            }
144                            ,
145                            {
146                                featureType:"water",
147                                elementType:"all",
148                                stylers:[ {
149                                    color: "#b7ecf0"
150                                }
151                                    ,
152                                    {
153                                        visibility: "on"
154                                    }
155                                ]
156                            }
157                        ]
158                    }
159                    ,
160                    l=document.getElementById("singlepostmap"),
161                    t=new google.maps.Map(l, e);
162                new google.maps.Marker( {
163                        position: new google.maps.LatLng($lat, $lan), icon: ""+$pinicon+"", map: t, title: ""
164                    }
165                )
166            }
167            google.maps.event.addDomListener(window, "load", init);
168        }
169    }
170}
171if( jQuery('#lp-map-hide-show').length != 0 )
172{
173    $elat=jQuery('#eventmap-popup').data("lat");
174    $elan=jQuery('#eventmap-popup').data("lan");
175    $pinicon    =   jQuery('#eventmap-popup').data("pinicon");
176
177    "use strict";
178    $mtoken = jQuery('#page').data("mtoken");
179    if($mtoken != ''){
180
181
182
183        L.HtmlIcon = L.Icon.extend({
184            options: {
185                /*
186                html: (String) (required)
187                iconAnchor: (Point)
188                popupAnchor: (Point)
189                */
190            },
191
192            initialize: function(options) {
193                L.Util.setOptions(this, options);
194            },
195
196            createIcon: function() {
197                var div = document.createElement('div');
198                div.innerHTML = this.options.html;
199                if (div.classList)
200                    div.classList.add('leaflet-marker-icon');
201                else
202                    div.className += ' ' + 'leaflet-marker-icon';
203                return div;
204            },
205
206            createShadow: function() {
207                return null;
208            }
209        });
210
211
212        L.mapbox.accessToken = $mtoken;
213        var map = L.mapbox.map('eventmap-popup', $mapboxDesign)
214            .setView([$elat,$lean], 17);
215
216        var markers = new L.MarkerClusterGroup();
217
218        var markerLocation = new L.LatLng($elat, $elan); // London
219
220        var CustomHtmlIcon = L.HtmlIcon.extend({
221            options : {
222                html : "<div class='lpmap-icon-shape pin '><div class='lpmap-icon-contianer'><img src='"+$pinicon+"'  /></div></div>",
223            }
224        });
225
226        var customHtmlIcon = new CustomHtmlIcon();
227
228        var marker = new L.Marker(markerLocation, {icon: customHtmlIcon}).bindPopup('').addTo(map);
229        markers.addLayer(marker);
230        map.fitBounds(markers.getBounds());
231
232        map.scrollWheelZoom.disable();
233        map.invalidateSize();
234
235
236    }else{
237        if($elan !='' && $elat !='') {
238            function init_event() {
239                var e= {
240                        zoom:17,
241                        scrollwheel:!1,
242                        center:new google.maps.LatLng($elat, $elan),
243                        styles:[ {
244                            featureType:"administrative",
245                            elementType:"labels.text.fill",
246                            stylers:[ {
247                                color: "#444444"
248                            }
249                            ]
250                        }
251                            ,
252                            {
253                                featureType:"landscape",
254                                elementType:"all",
255                                stylers:[ {
256                                    color: "#f2f2f2"
257                                }
258                                ]
259                            }
260                            ,
261                            {
262                                featureType:"poi",
263                                elementType:"all",
264                                stylers:[ {
265                                    visibility: "off"
266                                }
267                                ]
268                            }
269                            ,
270                            {
271                                featureType:"road",
272                                elementType:"all",
273                                stylers:[ {
274                                    saturation: -100
275                                }
276                                    ,
277                                    {
278                                        lightness: 45
279                                    }
280                                ]
281                            }
282                            ,
283                            {
284                                featureType:"road.highway",
285                                elementType:"all",
286                                stylers:[ {
287                                    visibility: "simplified"
288                                }
289                                ]
290                            }
291                            ,
292                            {
293                                featureType:"road.arterial",
294                                elementType:"labels.icon",
295                                stylers:[ {
296                                    visibility: "off"
297                                }
298                                ]
299                            }
300                            ,
301                            {
302                                featureType:"transit",
303                                elementType:"all",
304                                stylers:[ {
305                                    visibility: "off"
306                                }
307                                ]
308                            }
309                            ,
310                            {
311                                featureType:"water",
312                                elementType:"all",
313                                stylers:[ {
314                                    color: "#b7ecf0"
315                                }
316                                    ,
317                                    {
318                                        visibility: "on"
319                                    }
320                                ]
321                            }
322                        ]
323                    }
324                    ,
325                    l=document.getElementById("eventmap-popup"),
326                    t=new google.maps.Map(l, e);
327                new google.maps.Marker( {
328                        position: new google.maps.LatLng($elat, $elan), icon: ""+$pinicon+"", map: t, title: ""
329                    }
330                )
331            }
332            google.maps.event.addDomListener(window, "load", init_event);
333        }
334    }
335}

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.