User Manual
Concepts
Get Started
- Pre-Requisites
- Install the NuGet Package
- Obtain Leaflet
- Obtain a License
- Initialize Mapzania
- Initialize Endpoints
- Adding a JavaScript Reference
- Add a Map to a Web Page
- Add Data to a Map
- Style a Map
- Further Reading
JavaScript Client
- Introduction
- Creating a Map Object
- Customize the Map Toolbar
- Map Events
- Mouse and Drawing Behaviour
- Map Extents
- Refresh/Reset the Map
- Working with Layers
- Displaying Layers
- Working with Layer Data
- Styling Layers
- Transforming Layers
- Working with Features
- Displaying Features
- Styling Features
- Working with the QueryEngine
DotNet Server
Transforming Layers
The Layer Object provides a number of methods for filtering layer data namely:
- bufferGeometry
- changeProperties
- clearFilters
- clipByFeatureCollection
- convertToCentroids
- filterByBoundingBox
- filterByFeatureCollection
- filterByNearest
- filterByText
NOTE: Because the Layer Object implements method chaining, multiple filters can be applied to a layer.
JavaScript
window.onload = function () {
var map = new Mapzania.Map("map-div", "AFRICA", function () {
map.usingLayer("COUNTRIES")
.clearFilters()
.filterByNearest(point, {take: 5})
.bufferGeometry(1.5)
.convertToCentroids()
.update();
};
The following interactive examples show this in action: