first commit

This commit is contained in:
dev-chiefworks
2022-05-31 16:21:53 -04:00
commit f76abffdcd
5978 changed files with 1078901 additions and 0 deletions
+52
View File
@@ -0,0 +1,52 @@
/* ------------------------------------------------------------------------------
*
* # Basic markers
*
* Specific JS code additions for maps_google_markers.html page
*
* Version: 1.0
* Latest update: Aug 1, 2015
*
* ---------------------------------------------------------------------------- */
$(function() {
// Setup map
function initialize() {
// Set coordinates
var myLatlng = new google.maps.LatLng(52.374,4.898);
// Options
var mapOptions = {
zoom: 10,
center: myLatlng
};
// Apply options
var map = new google.maps.Map($('.map-marker-simple')[0], mapOptions);
var contentString = 'Amsterdam';
// Add info window
var infowindow = new google.maps.InfoWindow({
content: contentString
});
// Add marker
var marker = new google.maps.Marker({
position: myLatlng,
map: map,
title: 'Hello World!'
});
// Attach click event
google.maps.event.addListener(marker, 'click', function() {
infowindow.open(map,marker);
});
};
// Initialize map on window load
google.maps.event.addDomListener(window, 'load', initialize);
});