User Manual

Styling Layers

The Layer Object provides a number of methods for styling layers on-the-fly namely:

JavaScript


window.onload = function () {
    var map = new Mapzania.Map("map-div", "AFRICA", function () {
    	map.usingLayer("COUNTRIES")
    	    .style({ fillColor: "#0000FF" })
	        .update();
    });
};

The following interactive examples show this in action: