1$siteURL = jQuery('#page').data("site-url"); 2$pinicon = jQuery('#singlepostmap').data('pinicon'); 3if($pinicon===""){ 4 $pinicon = $siteURL+"wp-content/themes/listingpro/assets/images/pins/pin.png"; 5} 6if( jQuery('#singlepostmap').length !=0 ){ 7 $lat = jQuery('#singlepostmap').data("lat"); 8 $lan = jQuery('#singlepostmap').data("lan"); 9 "use strict"; 10 $mtoken = jQuery('#page').data("mtoken"); 11 $mtype = jQuery('#page').data("mtype"); 12 if($mtype == 'mapbox' || $mtype == 'openstreet'){ 13 /* mapbox */ 14 L.HtmlIcon = L.Icon.extend({ 15 options: { 16 /* 17 html: (String) (required) 18 iconAnchor: (Point) 19 popupAnchor: (Point) 20 */ 21 }, 22 initialize: function(options) { 23 L.Util.setOptions(this, options); 24 }, 25 createIcon: function() { 26 var div = document.createElement('div'); 27 div.innerHTML = this.options.html; 28 if (div.classList) 29 div.classList.add('leaflet-marker-icon'); 30 else 31 div.className += ' ' + 'leaflet-marker-icon'; 32 return div; 33 }, 34 createShadow: function() { 35 return null; 36 } 37 }); 38 if($mtoken != '' && $mtype == 'mapbox'){ 39 L.mapbox.accessToken = $mtoken; 40 var map = L.mapbox.map('singlepostmap') 41 .setView([$lat,$lan], 17); 42 L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', { 43 id: jQuery('#page').data("mstyle"), 44 accessToken: jQuery('#page').data("mtoken") 45 }).addTo(map); 46 }else if($mtype == 'openstreet'){ 47 var map = new L.Map('singlepostmap', '').setView(new L.LatLng($lat, $lan), 17); 48 L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map); 49 } 50 var markers = new L.MarkerClusterGroup(); 51 var markerLocation = new L.LatLng($lat, $lan); // London 52 var CustomHtmlIcon = L.HtmlIcon.extend({ 53 options : { 54 html : "<div class='lpmap-icon-shape pin '><div class='lpmap-icon-contianer'><img src='"+$pinicon+"' /></div></div>", 55 } 56 }); 57 var customHtmlIcon = new CustomHtmlIcon(); 58 var marker = new L.Marker(markerLocation, {icon: customHtmlIcon}).bindPopup('').addTo(map); 59 markers.addLayer(marker); 60 map.fitBounds(markers.getBounds()); 61 map.scrollWheelZoom.disable(); 62 map.invalidateSize(); 63 }else{ 64 if($lan != '' && $lat != ''){ 65 function init(){var e={zoom:17,scrollwheel:!1,center:new google.maps.LatLng($lat,$lan),styles:[{featureType:"administrative",elementType:"labels.text.fill",stylers:[{color:"#444444"}]},{featureType:"landscape",elementType:"all",stylers:[{color:"#f2f2f2"}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"all",stylers:[{saturation:-100},{lightness:45}]},{featureType:"road.highway",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"road.arterial",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"all",stylers:[{color:"#b7ecf0"},{visibility:"on"}]}]},l=document.getElementById("singlepostmap"),t=new google.maps.Map(l,e);new google.maps.Marker({position:new google.maps.LatLng($lat,$lan),icon:""+$pinicon+"",map:t,title:""})}google.maps.event.addDomListener(window,"load",init); 66 } 67 } 68}else{ 69}
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.