添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Skip to content

ol-animated-clusterlayer

ol-animated-clusterlayer is a layer that animates clusters on zoom change. ol-interaction-clusterselect . is a select interaction. On select cluster springs apart to reveal the features. The revealed features are themselves selectable. Revealed features are themselves a cluster with an attribute 'features' that contain the original feature.

Demo

Setup

Plugin usage

This component is part of the Layers plugin. If not installed globally , you need to import and use the plugin in your main.ts or use the explicit component import (see section below).

Import and use the Layers plugin

Explicit import

If you don't want to install a plugin, you can import the component explicitly . It's available as a child of the named export Layers .

NOTE

The following documentation refers to the plugin usage. Please make sure to adopt the component names, when you decided to use explicit component imports (e. g. <ol-map> becomes <Map.OlMap> etc.).

Usage

Plugin Usage Explicit Import
<ol-animated-clusterlayer> <Layers.OlAnimatedClusterlayer>

Performance hints

The performance of a map with a huge amount of markers / clusters can be influenced by the way the data is passed to the ol-source-vector . In case your map doesn't render correctly, interactive elements are blocking, or you are ending up with memory leaks, it's probably worth switching from passing the features directly to requesting features from a URL. You can find more information in the performance section for ol-source-vector .