Gereken Kodlar;
Harita.html Kodları:
Kod:
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<style>
html, body, #map-canvas {
height: 100%;
margin: 0px;
padding: 0px
}
</style>
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
<script>
var map;
function initialize() {
var mapOptions = {
zoom: 6,
panControl:true,
panControlOptions: {
position: google.maps.ControlPosition.RIGHT_TOP},
zoomControl:true,
zoomControlOptions: {style: google.maps.ZoomControlStyle.SMALL, position: google.maps.ControlPosition.LEFT_TOP},
scaleControl: true,
streetViewControl: true,
streetViewControlOptions: {position: google.maps.ControlPosition.LEFT_TOP},
mapTypeControl:true,
center: new google.maps.LatLng(39, 35.5)};
map = new google.maps.Map(document.getElementById('map-canvas'),
mapOptions);
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>
<body>
<div id="map-canvas"></div>
</body>
</html>
Form Load kodları:
Kod:
Harita.DocumentText = My.Resources.Harita
Öyle insanlar vardır ki sadece fikirleri bile yepyeni ağaçların fidanlarını eker.