JS API
- Parameters
- Options
- Example
- Methods
- fitToBoundingBox
- getBoundingBox
- getInitialBoundingBox
- getLayers
- getMouseMode
- off
- on
- once
- refresh
- reset
- setMouseMode
- usingLayer
- usingNewLayer
- Events
- Parameters
- Example
- Methods
- addFeature
- addFeatureCollection
- bringForwards
- bufferGeometry
- changeProperties
- clearFilters
- clearFeatures
- clearStyle
- clipByFeatureCollection
- convertToCentroids
- filterByBoundingBox
- filterByFeatureCollection
- filterByNearest
- filterByText
- getFeatureCollection
- hide
- sendBackwards
- show
- style
- update
- usingFeature
update
Causes the layer to redraw after its underlying data has changed. This might be due to database changes, styling changes or features being added to the layer on the client.
Parameters
No parameters.
Example
var map = new Mapzania.Map("map-div", "AFRICA");
map.usingLayer("COUNTRIES")
.filterByText("LandLocked=='Y'")
.style({ fillColor: "#CCCCCC"})
.update();