⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.124
Server IP:
50.28.103.30
Server:
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
food.electronharmony.com
/
style
/
js
/
View File Name :
map-add.js
function singleMap() { var markerIcon = { url: 'images/marker2.png', } var myLatLng = { lng: $('#singleMap').data('longitude'), lat: $('#singleMap').data('latitude'), }; var single_map = new google.maps.Map(document.getElementById('singleMap'), { zoom: 14, center: myLatLng, scrollwheel: false, zoomControl: false, fullscreenControl: true, mapTypeControl: false, scaleControl: false, panControl: false, navigationControl: false, streetViewControl: true, styles: [{ "featureType": "landscape", "elementType": "all", "stylers": [{ "color": "#f2f2f2" }] }] }); var marker = new google.maps.Marker({ position: myLatLng, map: single_map, icon: markerIcon, draggable: true, title: 'Your location' }); google.maps.event.addListener(marker, 'dragend', function (event) { document.getElementById("lat").value = event.latLng.lat(); document.getElementById("long").value = event.latLng.lng(); }); var zoomControlDiv = document.createElement('div'); var zoomControl = new ZoomControl(zoomControlDiv, single_map); function ZoomControl(controlDiv, single_map) { zoomControlDiv.index = 1; single_map.controls[google.maps.ControlPosition.RIGHT_CENTER].push(zoomControlDiv); controlDiv.style.padding = '5px'; var controlWrapper = document.createElement('div'); controlDiv.appendChild(controlWrapper); var zoomInButton = document.createElement('div'); zoomInButton.className = "mapzoom-in"; controlWrapper.appendChild(zoomInButton); var zoomOutButton = document.createElement('div'); zoomOutButton.className = "mapzoom-out"; controlWrapper.appendChild(zoomOutButton); google.maps.event.addDomListener(zoomInButton, 'click', function () { single_map.setZoom(single_map.getZoom() + 1); }); google.maps.event.addDomListener(zoomOutButton, 'click', function () { single_map.setZoom(single_map.getZoom() - 1); }); } } var head = document.getElementsByTagName( 'head' )[0]; // Save the original method var insertBefore = head.insertBefore; // Replace it! head.insertBefore = function( newElement, referenceElement ) { if ( newElement.href && newElement.href.indexOf( 'https://fonts.googleapis.com/css?family=Roboto' ) === 0 ) { return; } insertBefore.call( head, newElement, referenceElement ); }; var single_map = document.getElementById('singleMap'); if (typeof (single_map) != 'undefined' && single_map != null) { google.maps.event.addDomListener(window, 'load', singleMap); }