Marker Size in gMaps
by ocanal
HTML
<script src="http://maps.google.com/maps/api/js?sensor=false&.js"></script>
<div id="results"></div>
<div id="map"></div>
CSS
#map{
width: 450px;
height: 400px;
}
JavaScript
function initialize(){
var map;
var centerPosition = new google.maps.LatLng(50.272213,-5.054973);
var options = {
'zoom': 12,
'center': centerPosition,
'mapTypeId': google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById('map'), options);
var circle = new google.maps.Circle({
center: centerPosition,
map: map,
fillColor: '#0000FF',
fillOpacity: 0.5,
strokeColor: '#0000FF',
strokeOpacity: 1.0,
strokeWeight: 2
});
circle.setRadius(300000);
map.fitBounds(circle.getBounds());
}
google.maps.event.addDomListener(window, 'onload', initialize());