var mapOpts = { mapTypeId: google.maps.MapTypeId.TERRAIN, scaleControl: true, scrollwheel: false } var map = new google.maps.Map(document.getElementById("map"), mapOpts); // We set zoom and center later by fitBounds() var infoWindow = new google.maps.InfoWindow(); var markerBounds = new google.maps.LatLngBounds(); var image = new google.maps.MarkerImage( 'http://22.web-demo.nl/img/maps/nature_marker_48.png', new google.maps.Size(48,48), new google.maps.Point(0,0), new google.maps.Point(0,48) ); var image2 = new google.maps.MarkerImage( 'http://22.web-demo.nl/img/maps/nature_marker_48_inv.png', new google.maps.Size(48,48), new google.maps.Point(0,0), new google.maps.Point(0,48) ); var shadow = new google.maps.MarkerImage( 'http://22.web-demo.nl/img/maps/nature_marker_shadow_48.png', new google.maps.Size(82,48), new google.maps.Point(0,0), new google.maps.Point(0,48) ); var shape = { coord: [30,8,31,9,32,10,33,11,34,12,35,13,36,14,36,15,37,16,38,17,39,18,40,19,40,20,40,21,41,22,41,23,40,24,40,25,40,26,40,27,39,28,39,29,38,30,37,31,36,32,33,33,31,34,28,35,26,36,23,37,21,38,18,39,13,39,11,38,9,37,8,36,8,35,7,34,7,33,7,32,7,31,7,30,7,29,7,28,7,27,7,26,7,25,7,24,7,23,7,22,6,21,6,20,7,19,7,18,8,17,8,16,9,15,10,14,12,13,14,12,17,11,19,10,21,9,24,8,30,8], type: 'poly' }; var markerArray = []; function makeMarker(options){ var pushPin = new google.maps.Marker({map:map}); pushPin.setOptions(options); google.maps.event.addListener(pushPin, "click", function(){ infoWindow.setOptions(options); infoWindow.open(map, pushPin); }); markerBounds.extend(options.position); markerArray.push(pushPin); return pushPin; } google.maps.event.addListener(map, "click", function(){ infoWindow.close(); }); makeMarker({ position: new google.maps.LatLng(0.050083, 32.460881), content: "

Airport Guesthouse Entebbe



", Width: 700, title: "Nature Lodges - Airport Guesthouse Entebbe", icon: image, shadow: shadow }); makeMarker({ position: new google.maps.LatLng(-0.137572,30.041556), content: "

Queen Elizabeth Bush Lodge



", title: "Nature Lodges - Queen Elizabeth Bush Lodge", icon: image, shadow: shadow }); makeMarker({ position: new google.maps.LatLng(0.391036, 30.405628), content: "

Kibale Forest Camp



", title: "Nature Lodges - Kibale Forest Camp", icon: image2, shadow: shadow }); makeMarker({ position: new google.maps.LatLng(-1.283933, 29.687922), content: "

Traveller`s Rest



", title: "Nature Lodges - Traveller`s Rest", icon: image, shadow: shadow }); makeMarker({ position: new google.maps.LatLng(2.480261, 31.536000), content: "

Fort Murchison



", title: "Nature Lodges - Fort Murchison", icon: image, shadow: shadow }); makeMarker({ position: new google.maps.LatLng(-0.600867, 30.923800), content: "

Eagle`s Nest



", title: "Nature Lodges - Eagle`s Nest", icon: image, shadow: shadow }); makeMarker({ position: new google.maps.LatLng(-1.121936, 29.724133), content: "

Gorilla Valley



", title: "Nature Lodges - Gorilla Valley", icon: image, shadow: shadow }); map.fitBounds(markerBounds);