Files
2026-08-12 14:06:49 +02:00

35 lines
1.1 KiB
JavaScript

function initialize() {
var geocoder = new google.maps.Geocoder();
geocoder.geocode( { 'address': 'Thorner Straße 1,12623 Berlin'}, function(results, status) {
if(status == google.maps.GeocoderStatus.OK) {
var myOptions = {
zoom: 15,
center: results[0].geometry.location,
mapTypeId: google.maps.MapTypeId.ROADMAP,
mapTypeControl: false,
navigationControl: true,
navigationControlOptions: {style: google.maps.NavigationControlStyle.SMALL}
};
var map = new google.maps.Map(document.getElementById("googlemap"), myOptions);
var marker = new google.maps.Marker({
position: results[0].geometry.location,
map: map
});
} else {
alert("Geocode was not successful for the following reason: " + status);
}
});
}
initialize();
function sending() {
var text = "%6D%61%69%6C%74%6F:%6B%6F%6E%74%61%6B%74@%64%69%61%6C%79%73%65%2D%62%65%72%6C%69%6E%2E%6E%65%74";
location.href = decodeURI(text);
return true;
}