User Manual

Working with Features

The Layer Object provides a method for working with a feature that returns a Feature Object namely:

NOTE: The Layer Object provides method chaining.

JavaScript


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

The following interactive examples show this in action: