User Manual

Styling Features

The Feature Object provides two methods for styling a feature namely:

JavaScript


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

The following interactive example shows this in action: