204 Part III — Google Map Hacks
thisIcon.iconSize = new GSize(thisIcon.iconSize.width*volume,
thisIcon.iconSize.height*volume);
thisIcon.shadowSize = new GSize(thisIcon.shadowSize.width*volume,
thisIcon.shadowSize.height*volume);
thisIcon.iconAnchor = new GPoint((thisIcon.iconAnchor.x*volume),
thisIcon.iconAnchor.y*volume);
addmarker(points[i].x,points[i].y,titles[i] + ‘: ‘ + ;
popdata[i][year],thisIcon);
}
}
The final map, showing the custom icons highlighting the population in 1994, is shown in
Figure 10-13. A close up of an icon and its shadow is shown in Figure 10-14. Of course, the
dramatic contrast of shade and color can be better seen on the web site
(http://maps.mcslp.com).
FIGURE10-13: The final custom icon statistical map.
The basic example is available at http://maps.mcslp.com/examples/ch10-01.html.