|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/grandpre/Library/components/contact-map/ |
Upload File : |
<body>
<!--
You need to include this script on any page that has a Google Map.
When using Google Maps on your own site you MUST signup for your own API key at:
https://developers.google.com/maps/documentation/javascript/tutorial#api_key
After your sign up replace the key in the URL below or paste in the new script tag that Google provides.
-->
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?;sensor=false"></script>
<script type="text/javascript">
// When the window has finished loading create our google map below
google.maps.event.addDomListener(window, 'load', init);
function init() {
// Basic options for a simple Google Map
// For more options see: https://developers.google.com/maps/documentation/javascript/reference#MapOptions
var mapOptions = {
// How zoomed in you want the map to start at (always required)
zoom: 10,
disableDefaultUI: true,
// The latitude and longitude to center the map (always required)
center: new google.maps.LatLng(40.6700, -73.9400), // New York
// How you would like to style the map.
// This is where you would paste any style found on Snazzy Maps.
styles: [{
featureType: 'water',
stylers: [{
color: '#333333'
}, {
visibility: 'on'
}]
}, {
featureType: 'landscape',
stylers: [{
color: '#dddddd'
}]
}, {
featureType: 'road',
stylers: [{
saturation: 0
}, {
lightness: 100
}]
}, {
featureType: 'road.highway',
stylers: [{
visibility: 'simplified'
}]
}, {
featureType: 'road.arterial',
elementType: 'labels.icon',
stylers: [{
visibility: 'off'
}]
}, {
featureType: 'administrative',
elementType: 'labels.text.fill',
stylers: [{
color: '#333333'
}]
}, {
featureType: 'transit',
stylers: [{
visibility: 'off'
}]
}, {
featureType: 'poi',
stylers: [{
visibility: 'off'
}]
}]
};
// Get the HTML DOM element that will contain your map
// We are using a div with id="map" seen below in the <body>
var mapElement = document.getElementById('map');
// Create the Google Map using out element and options defined above
var map = new google.maps.Map(mapElement, mapOptions);
}
</script>
<!-- The element that will contain our Google Map. This is used in both the Javascript and CSS above. -->
<div class="map-wrapper">
<div id="map"></div>
</div>
</body>