I have HTML page and contain
Header
<script type="text/javascript">
var citymap = {};
var cityCircle;
var myCenter = new google.maps.LatLng(55,55);
function initialize()
{
var mapProp =
{
center:myCenter,
zoom:5,
mapTypeId:google.maps.MapTypeId.TERRAIN
};
var map=new google.maps.Map(document.getElementById("googleMap"),mapProp);
var i = 0 ;
for (var city in citymap) {
var populationOptions = {
strokeColor: '#FF0000',
strokeOpacity: 0.8,
strokeWeight: 2,
fillColor: '#FF0000',
fillOpacity: 0.35,
map: map,
center: citymap[city].center,
radius: 10000
};
// Add the circle for this city to the map.
cityCircle = new google.maps.Circle(populationOptions);
// show tweeeeetsssssssss ///////
google.maps.event.addListener(cityCircle, 'click', function() {
//alert(text);
});
/*
google.maps.event.addListener(cityCircle, 'click', function() {
new google.maps.InfoWindow({content: 'hello!'}).open(map, cityCircle);
});*/
}
as we show ... I draw a google map and define a circle with properties . In the part of body page ... I have array of java-script which contain the coordinates
body
<javascript>
Coordinates[i] = {
center: new google.maps.LatLng(latitude,longitude),
};
</javasript>
now ... all circles will draw in same ( color . radios ... etc )... what I want is how can I change this properties of the circles like for example ( I want 3 circle red ... 4 blue ... ).thx :-)