1function initMap() { 2 if(typeof(mapZoom)==="undefined") mapZoom=11; 3 //if(typeof(mapType)==="undefined") mapType='roadmap'; 4 map = new google.maps.Map(document.getElementById('gmap'), { 5 zoom: mapZoom, 6 center: marker0 7 }); 8 // mapTypeId: mapType, 9 10 map.setOptions({styles: [ {featureType: 'poi',stylers: [{visibility: 'off'}]}, {featureType: 'poi.attraction',stylers: [{visibility: 'on'}]}, {featureType: 'transit', elementType: 'labels.icon', stylers: [{visibility: 'off'}]} ] }); 11 // Adds a marker at the center of the map 12 addMarker(marker0); 13 // Adds the other markers 14 //setMarkers(map, catgry); 15} 16 17// Adds a marker to the map and push to the array. 18function addMarker(location) { 19 var contentString = '<div class="infoWindow"><b>'+mk0name+'</b>'+'</div>'; 20 var infowindow = new google.maps.InfoWindow({ 21 content: contentString 22 }); 23 var marker = new google.maps.Marker({ 24 position: location, 25 title: mk0name, 26 map: map 27 }); 28 marker.addListener('click', function() { 29 infowindow.open(map, marker); 30 }); 31 markers.push(marker); 32} 33 34// Sets the map on all markers in the array. 35function setMapOnAll(map) { 36 for (var i = 0; i < markers.length; i++) { 37 markers[i].setMap(map); 38 } 39} 40 41// Removes the markers from the map, but keeps them in the array. 42function clearMarkers() { 43 setMapOnAll(null); 44} 45 46// Shows any markers currently in the array. 47//function showMarkers() { 48// setMapOnAll(map); 49//} 50 51// Deletes all markers in the array by removing references to them. 52function deleteMarkers() { 53 clearMarkers(); 54 markers = []; 55} 56 57 58// Adds markers to the map. 59// Marker sizes are expressed as a Size of X,Y where the origin of the image 60// (0,0) is located in the top left of the image. 61// Origins, anchor positions and coordinates of the marker increase in the X 62// direction to the right and in the Y direction down. 63// This marker is 39 pixels wide by 32 pixels high. 64// The origin for this image is (0, 0). 65// The anchor for this image is the base of the pin at (10, 31). 66// Shapes define the clickable region of the icon. The type defines an HTML 67// <area> element 'poly' which traces out a polygon as a series of X,Y points. 68// The final coordinate closes the poly by connecting to the first coordinate. 69// 70// zid poate fi array sau interger 71 72function setMarkers(map, catgryid, zid) { 73 if (zid[0]===0) deleteMarkers(); 74 addMarker(marker0); 75 var image = { 76 url: 'https://www.tititudorancea.com/lib/dark-blue-pin.png', 77 size: new google.maps.Size(39, 32), 78 origin: new google.maps.Point(0, 0), 79 anchor: new google.maps.Point(10, 31) 80 }; 81 var shape = { 82 coords: [1, 1, 1, 28, 21, 28, 18, 1], 83 type: 'poly' 84 }; 85 for (var i = 0; i < mapPoints.length; i++) { 86 var mapPoint = mapPoints[i]; 87 var showMe=0; 88 if (mapPoint[1]===catgryid) { 89 showMe=1; 90 } else { 91 for (var z = 0; z < zid.length; z++) { 92 if(mapPoint[4]===zid[z]) showMe=1; 93 } 94 } 95 if (showMe) { 96 var marker = new google.maps.Marker({ 97 position: {lat: mapPoint[2], lng: mapPoint[3]}, 98 map: map, 99 icon: image, 100 shape: shape, 101 title: mapPoint[0], 102 zIndex: mapPoint[4] 103 }); 104 attachInfoWindow(marker, mapPoint[0]); 105 markers.push(marker); 106 } 107 } 108 document.getElementById('gmap').scrollIntoView(); 109} 110function attachInfoWindow(marker, txt) { 111 var infowindow = new google.maps.InfoWindow({ 112 content: '<div class="infoWindow"><b>'+txt+'</b></div>' 113 }); 114 marker.addListener('click', function() { 115 infowindow.open(marker.get('map'), marker); 116 }); 117} 118 119function ClaimBusiness() { 120 location.href = "https://tools.tititudorancea.com/users/business_listing_step1.php?pgno="+window.pgno+"&pgcats="+window.pgcats; 121} 122 123function PutClaimButton() { 124 if (typeof window.pgno !== "undefined") { 125 if (typeof window.pgcats !== "undefined") { 126 if ((window.pgcats!=='1329') && (window.pgcats!=='1332') && (window.pgcats!=='1353')) { 127 //not a page in tourist info or in tourist attractions... 128 if (typeof window.noClaimB === "undefined") { 129 insertCss('.divClaimBs{border: 2px solid #9BC2FF;border-radius: 6px 6px 6px 6px;padding:16px;margin:0 0 18px 0}'); 130 // @media (min-width: 800px){.divClaimBs{float:right;max-width:280px;margin:0 0 18px 18px}} 131 var fh1=document.getElementsByTagName("h1")[0]; 132 //BlueButn class makes some inline styles pointless after Sept 4, 2019 133 if (fh1) fh1.insertAdjacentHTML("afterend", '<div class="divClaimBs">Claim this business to add contact details, photos, description and more. <a href="#" onclick="ClaimBusiness();return false;" class="BlueButn" style="font:bold 15px sans-serif;margin:4px;padding: 4px 8px">Claim This Business</a></div>'); 134 } 135 } 136 } 137 } 138} 139setTimeout("PutClaimButton()", 100); 140
141oChain.load_now('https://maps.googleapis.com/maps/api/js?key=AIzaSyDAobRYOkGN2L7oW5xeYaBEC-J5E_XieBw&callback=initMap', 1);
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.