-
Notifications
You must be signed in to change notification settings - Fork 508
Layer
Layer is the core of maptalks, map does nearly everything by layers: display base maps by TileLayer, load sptaial data by VectorLayer and draw heatmaps by HeatMap, etc.
Each layer is an independent mechanism.
- Independent: No correlation with each other
- A mechanism: Every layer can have its own data format, rendering mechanism, interactions, spatial processing, etc.
- Inheritance: Child layer can extend parent layer, e.g: inherits parent's data format with a new rendering mechanism
You can use layers to draw simple points/lines/polygons, load 3D terrain data, or create complicated interactions or animations. They are all layers.
To display raster tiles, TileLayer uses different [Tile System|tile-system] to load tiles from different coordinate systems.
Load vector data including Marker, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon, GeometryCollection and extended geometries like Curve, Ellipse, Rectangle
CanvasLayer is a HTML5 Canvas based layer, provides methods(prepareToDraw, draw) to manipulate canvas operations. It also provides some methods helpful for animations.
A child layer of CanvasLayer, it encapsulate particle's paintinging, you can simply implement its getParticles
method to draw various particles on map.
CanvasTileLayer is a child layer of TileLayer, each tile of CanvasTileLayer is an independent canvas container instead of image.
ClusterLayer, to cluster markers into customizable clusters, a child layer of VectorLayer.
HeatLayer, to draw data as heatmap.
AnimateMarkerLayer, to draw markers with customizable animations, a child layer of VectorLayer.
You can go to plugins to check out other useful layers.