var map; function init() { map = new OpenLayers.Map("map"); var wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", "http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: "basic"} ); /** * Create 50 vector features. Your features would typically be fetched * from the server. These are created here to demonstrate a rule based * style. The features are given an attribute named "foo". The value * of this attribute is an integer that ranges from 0 to 100. */ var features = new Array(25); for (var i=0; i