school-administrarion/assets/scripts/map.demo.min.js

2 lines
6.3 KiB
JavaScript
Raw Permalink Normal View History

2024-05-07 19:49:43 +00:00
!function(e){"use strict";if(e("#map-default").length)var o=document.getElementById("map-default"),a={center:new google.maps.LatLng(51.508742,-.12085),zoom:5},t=new google.maps.Map(o,a);if(e("#map-marker").length){var o=document.getElementById("map-marker"),a={center:new google.maps.LatLng(51.508742,-.12085),zoom:5},g=new google.maps.Marker({position:new google.maps.LatLng(51.508742,-.12085),animation:google.maps.Animation.BOUNCE}),t=new google.maps.Map(o,a);g.setMap(t)}if(e("#map-poly").length){var n=new google.maps.LatLng(58.983991,5.734863),l=new google.maps.LatLng(52.395715,4.888916),p=new google.maps.LatLng(51.508742,-.12085),o=document.getElementById("map-poly"),a={center:l,zoom:4},t=new google.maps.Map(o,a),m=new google.maps.Polyline({path:[n,l,p],strokeColor:"#0000FF",strokeOpacity:.8,strokeWeight:2});m.setMap(t)}if(e("#map-polygon").length){var n=new google.maps.LatLng(58.983991,5.734863),l=new google.maps.LatLng(52.395715,4.888916),p=new google.maps.LatLng(51.508742,-.12085),o=document.getElementById("map-polygon"),a={center:l,zoom:4},t=new google.maps.Map(o,a),m=new google.maps.Polygon({path:[n,l,p],strokeColor:"#0000FF",strokeOpacity:.8,strokeWeight:2,fillColor:"#0000FF",fillOpacity:.4});m.setMap(t)}if(e("#map-circle").length){var l=new google.maps.LatLng(52.395715,4.888916),o=document.getElementById("map-circle"),a={center:l,zoom:7},t=new google.maps.Map(o,a),s=new google.maps.Circle({center:l,radius:5e4,strokeColor:"#0000FF",strokeOpacity:.8,strokeWeight:2,fillColor:"#0000FF",fillOpacity:.4});s.setMap(t)}if(e("#map-info").length){var r=new google.maps.LatLng(51.508742,-.12085),o=document.getElementById("map-info"),a={center:r,zoom:5},t=new google.maps.Map(o,a),g=new google.maps.Marker({position:r});g.setMap(t);var i=new google.maps.InfoWindow({content:"Hello World!"});i.open(t,g)}if(e("#map-hybrid").length)var o=document.getElementById("map-hybrid"),a={center:new google.maps.LatLng(51.508742,-.12085),zoom:5,mapTypeId:google.maps.MapTypeId.HYBRID},t=new google.maps.Map(o,a);if(e("#map-45").length)var o=document.getElementById("map-45"),a={center:new google.maps.LatLng(45.434046,12.340284),zoom:18,mapTypeId:google.maps.MapTypeId.HYBRID},t=new google.maps.Map(o,a);if(e("#map-light-dream").length){var r=new google.maps.LatLng(40.67,-73.94),a={zoom:11,center:new google.maps.LatLng(40.67,-73.94),styles:[{featureType:"landscape",stylers:[{hue:"#FFBB00"},{saturation:43.400000000000006},{lightness:37.599999999999994},{gamma:1}]},{featureType:"road.highway",stylers:[{hue:"#FFC200"},{saturation:-61.8},{lightness:45.599999999999994},{gamma:1}]},{featureType:"road.arterial",stylers:[{hue:"#FF0300"},{saturation:-100},{lightness:51.19999999999999},{gamma:1}]},{featureType:"road.local",stylers:[{hue:"#FF0300"},{saturation:-100},{lightness:52},{gamma:1}]},{featureType:"water",stylers:[{hue:"#0078FF"},{saturation:-13.200000000000003},{lightness:2.4000000000000057},{gamma:1}]},{featureType:"poi",stylers:[{hue:"#00FF6A"},{saturation:-1.0989010989011234},{lightness:11.200000000000017},{gamma:1}]}]},y=document.getElementById("map-light-dream"),t=new google.maps.Map(y,a),g=new google.maps.Marker({position:r});g.setMap(t)}if(e("#map-blue-essence").length){var r=new google.maps.LatLng(40.67,-73.94),a={zoom:11,center:new google.maps.LatLng(40.67,-73.94),styles:[{featureType:"landscape.natural",elementType:"geometry.fill",stylers:[{visibility:"on"},{color:"#e0efef"}]},{featureType:"poi",elementType:"geometry.fill",stylers:[{visibility:"on"},{hue:"#1900ff"},{color:"#c0e8e8"}]},{featureType:"road",elementType:"geometry",stylers:[{lightness:100},{visibility:"simplified"}]},{featureType:"road",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{visibility:"on"},{lightness:700}]},{featureType:"water",elementType:"all",stylers:[{color:"#7dcdcd"}]}]},y=document.getElementById("map-blue-essence"),t=new google.maps.Map(y,a),g=new google.maps.Marker({position:r});g.setMap(t)}if(e("#map-midnight-commander").length){var r=new google.maps.LatLng(40.67,-73.94),a={zoom:11,center:new googl