loader
Beginner
$

2.00

  • 1,000,000 characters
Visa or MasterCard
OR
POPULAR
Professional
$

15.00

  • 10,000,000 characters
Visa or MasterCard
OR
Enterprise
$

100.00

  • 100,000,000 characters
Visa or MasterCard
OR
"); infoWindow.open(map); map.setCenter(pos); }, () => { handleLocationError(true, infoWindow, map.getCenter()); } ); } else { // Browser doesn't support Geolocation handleLocationError(false, infoWindow, map.getCenter()); } }); new google.maps.Marker({ position: myLatLng, map, title: "
", }); } function addMarker(title,content,position) { const marker = new google.maps.Marker({ position: position, title: title, content: content }); google.maps.event.addListener(marker, 'click', function() { $('#place_modal .modal-body').html( this.content ); $('#place_modal').modal('show'); rating_load(); }); marker.setMap(map); markers.push(marker); } // Sets the map on all markers in the array. function setMapOnAll(map) { for (let i = 0; i < markers.length; i++) { markers[i].setMap(map); } } // Removes the markers from the map, but keeps them in the array. function hideMarkers() { setMapOnAll(null); } // Shows any markers currently in the array. function showMarkers() { setMapOnAll(map); } // Deletes all markers in the array by removing references to them. function deleteMarkers() { hideMarkers(); markers = []; } window.initMap = initMap; $(document).ready(function(){ $(".map_click").on('click',function(){ $.ajax({ type: "GET", url: url + "0&ajax=true&lng=0&lat=0", success: function(data) { deleteMarkers(); data_location = null; var centerLatLng = new google.maps.LatLng(data.lat, data.lng); center = parseFloat(data.lng); if( data.center == 1 ){ map.setZoom(13); // This will trigger a zoom_changed on the map map.setCenter( centerLatLng ); } //this.set('oldCenter',map.getCenter()); data.places.forEach(function(item) { addMarker(item.title,item.content,{ lat: parseFloat(item.lat), lng: parseFloat(item.lng) }); }); } }); }); var images_ = $('*[data-image-home]'); for(var i =0; i< images_.length;i++){ $(images_[i]).attr('src',$(images_[i]).attr('data-image-home')); } var langs = $('*[data-lang]'); var current_lang = 'en'; for(var i =0; i< langs.length;i++){ if( $(langs[i]).attr('data-lang') == current_lang ){ $('*[data-lang-set]').attr('src',$(langs[i]).attr('src')); } } reload_ajax(); $("*[data-confirm]").on('click',function(){ var t_id = 'temp' + Math.random(); var element_ = this; $(this).attr('data-temp',t_id); $("body").attr('data-temp-id',t_id); if( $(this).attr('data-block-ui') != undefined ){ block_ui( $(this).attr('data-block-ui') ); } Swal.fire({ title: "Are you sure?", text: "Are you sure you want to delete your review?", type: "warning", showCancelButton: true, confirmButtonColor: "#3085d6", cancelButtonColor: "#d33", confirmButtonText: "Yes, delete it!", }).then((result) => { if (result.value) { var t_id = $("body").attr('data-temp-id'); var element_ = $( "*[data-temp='" + $("body").attr('data-temp-id') + "']" ); $.post( $(element_).attr('data-action'), {temp: t_id, id: $(element_).attr('data-id'), value: $(element_).attr('data-value')}) .done(function( data ) { eval(data); }); } }); }); }); function block_ui( id ){ $(id).parents('.card').block({ message: '', timeout: 1000, //unblock after 2 seconds overlayCSS: { backgroundColor: "#000", opacity: 0.5, cursor: "wait", }, css: { border: 0, padding: 0, backgroundColor: "transparent", }, }); } const cookieConsent = new CookieConsent({ contentUrl: "/cookie-consent-content", // location of the language files privacyPolicyUrl: "", body: "We use cookies to personalize content and analyze traffic to our site. Cookies are also used for authorization on the site and display of advertising.", buttonSecondaryClass: "none_" }); //cookieConsent.reset();