User Manual

Transforming Layers

The Layer Object provides a number of methods for filtering layer data namely:

NOTE: Because the Layer Object implements method chaining, multiple filters can be applied to a layer.


window.onload = function () {
    var map = new Mapzania.Map("map-div", "AFRICA", function () {
	        .filterByNearest(point, {take: 5})

The following interactive examples show this in action: