AMPERION_Webpage/themes/airspace-hugo/assets/plugins/google-map/gmap.js

120 lines
2 KiB
JavaScript
Raw Permalink Normal View History

2025-06-07 23:02:15 +02:00
function map() {
window.marker = null;
function initialize() {
var map;
var latitude = $('#map').attr('data-latitude');
var longitude = $('#map').attr('data-longitude');
var mapMarker = $('#map').attr('data-marker');
var mapMarkerName = $('#map').attr('data-marker-name');
var style = [{
"featureType": "administrative",
"elementType": "all",
"stylers": [{
"saturation": "-100"
}]
},
{
"featureType": "administrative.province",
"elementType": "all",
"stylers": [{
"visibility": "off"
}]
},
{
"featureType": "landscape",
"elementType": "all",
"stylers": [{
"saturation": -100
},
{
"lightness": 65
},
{
"visibility": "on"
}
]
},
{
"featureType": "poi",
"elementType": "all",
"stylers": [{
"saturation": -100
},
{
"lightness": "50"
},
{
"visibility": "simplified"
}
]
},
{
"featureType": "road",
"elementType": "all",
"stylers": [{
"saturation": "-100"
}]
},
{
"featureType": "road.highway",
"elementType": "all",
"stylers": [{
"visibility": "simplified"
}]
},
{
"featureType": "road.arterial",
"elementType": "all",
"stylers": [{
"lightness": "30"
}]
},
{
"featureType": "road.local",
"elementType": "all",
"stylers": [{
"lightness": "40"
}]
},
{
"featureType": "transit",
"elementType": "all",
"stylers": [{
"saturation": -100
},
{
"visibility": "simplified"
}
]
},
{
"featureType": "water",
"elementType": "geometry",
"stylers": [{
"hue": "#ffff00"
},
{
"lightness": -25
},
{
"saturation": -97
}
]
},
{
"featureType": "water",
"elementType": "labels",
"stylers": [{
"lightness": -25
},
{
"saturation": -100
}
]
}
];
}