Assagidaki html kodu kullanin. Bu bende google apikey ile calismakta.
lat ve lng adres bilgilerinin kordinatlari.
Let ( [
lat = "52.2400239";
lng = "5.36237379";
apiKey = "SIZINAPIKEYINIZ";
html = "<!DOCTYPE html>
<html>
<head>
<meta name=\"viewport\" content=\"initial-scale=2.0, user-scalable=no\">
<meta charset=\"utf-8\">
<title>iFresh</title>
<style>
html,
body,
#map-canvas {
height: 100%;
margin: 0px;
padding: 0px
}
</style>
<script src=\"http://maps.googleapis.com/maps/api/js?key=" & apiKey & "&v=3.exp&sensor=false\"></script>
<script>
function initialize() {
var positionLatlng = new google.maps.LatLng(1028804248, 1222222222222222, 154964381, 0888888888888889);
var mapOptions = ({
zoom: 20,
center: positionLatlng
});
var map = new google.maps.Map(document.getElementById(\"map-canvas\"), mapOptions);
var bounds = new google.maps.LatLngBounds();
var myLatlng1 = new google.maps.LatLng(" & Substitute ( lat ; "," ; "." ) &", " & Substitute ( lng ; "," ; "." ) & ");
var contentString1 = 'FMK Solutions | Maatwerk Applicaties';
var infowindow1 = new google.maps.InfoWindow({
content: contentString1
});
var marker1 = new google.maps.Marker({
position: myLatlng1,
map: map,
title: '',
icon: ''
});
google.maps.event.addListener(marker1, 'click', function() {
infowindow1.open(map, marker1);
});
bounds.extend(marker1.position);
map.fitBounds(bounds);
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>
<body>
<div id=\"map-canvas\"></div>
</body>
</html>";
end = ""
];
html
)