{"id":17269931,"url":"https://github.com/viglino/ol3-animatedcluster","last_synced_at":"2025-04-14T08:31:51.098Z","repository":{"id":82890879,"uuid":"43441362","full_name":"Viglino/OL3-AnimatedCluster","owner":"Viglino","description":"OL3-AnimatedCluster is now part of the ol-ext project","archived":false,"fork":false,"pushed_at":"2018-07-04T07:13:02.000Z","size":364,"stargazers_count":68,"open_issues_count":2,"forks_count":21,"subscribers_count":12,"default_branch":"gh-pages","last_synced_at":"2025-03-27T22:04:54.926Z","etag":null,"topics":["animation","cluster","javascript","maps","ol3","ol3-ext","openlayers"],"latest_commit_sha":null,"homepage":"http://viglino.github.io/ol-ext/examples/animation/map.animatedcluster.html","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Viglino.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-09-30T15:34:13.000Z","updated_at":"2023-11-23T06:38:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"9283ad27-2595-4274-b98c-7fa5785a69e0","html_url":"https://github.com/Viglino/OL3-AnimatedCluster","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Viglino%2FOL3-AnimatedCluster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Viglino%2FOL3-AnimatedCluster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Viglino%2FOL3-AnimatedCluster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Viglino%2FOL3-AnimatedCluster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Viglino","download_url":"https://codeload.github.com/Viglino/OL3-AnimatedCluster/tar.gz/refs/heads/gh-pages","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248845698,"owners_count":21170836,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["animation","cluster","javascript","maps","ol3","ol3-ext","openlayers"],"created_at":"2024-10-15T08:18:02.755Z","updated_at":"2025-04-14T08:31:51.047Z","avatar_url":"https://github.com/Viglino.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OL3-AnimatedCluster\n\n#### *[DEPRECATED]* OL3-AnimatedCluster is now part of the [ol-ext](https://github.com/Viglino/ol-ext) project and is now available on NPM.\n\nA cluster layer for [OpenLayers](https://github.com/openlayers/openlayers) (ol3/ol4) that animates clusters on zoom change and a select interaction that spread out cluster to allow feature selection in it.\n\nInspired by [acanimal/AnimatedCluster](https://github.com/acanimal/AnimatedCluster).\n\n[View the live  example...](http://viglino.github.io/OL3-AnimatedCluster)\n\n[\u003cimg src=\"https://github.com/Viglino/OL3-AnimatedCluster/raw/gh-pages/cluster_ani.gif\" width=\"600px\" /\u003e](http://viglino.github.io/OL3-AnimatedCluster)\n\nIf you like this, you may like [ol3-ext](http://viglino.github.io/ol3-ext/).\n\n## How it runs?\n\n`ol.layer.AnimatedCluster` is a layer that animates clusters on zoom change. The layer is created with an `ol.source.Cluster` as standard cluster vector layers.\n\n`ol.interaction.SelectCluster` is a select interaction that handles clusters. On select cluster springs apart to reveal the features. The revealed features are themselves selectable. Revealed features are a cluster with an attribute `features` that contain the original feature so they can be use as a cluster. \n\n##Usage\n\nInclude the following files in your page:\n```html\n\u003cscript type=\"text/javascript\" src=\"https://cdn.rawgit.com/Viglino/OL3-AnimatedCluster/gh-pages/interaction/selectclusterinteraction.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"https://cdn.rawgit.com/Viglino/OL3-AnimatedCluster/gh-pages/layer/animatedclusterlayer.js\"\u003e\u003c/script\u003e\n```\nCreate a cluster layer to add to the map object:\n```javascript\n// Cluster Source\nvar clusterSource = new ol.source.Cluster({\n     distance: 40,\n     source: new ol.source.Vector()\n\t});\n// Animated cluster layer\nvar clusterLayer = new ol.layer.AnimatedCluster(\n\t{\tname: 'Cluster',\n\t\tsource: clusterSource,\n\t\t// Use a style function for cluster symbolisation\n\t\tstyle: getStyle\n\t});\n// Add the layer to the map\nmap.addLayer(clusterLayer);\n```\nThe getStyle function will customize the clusters symbolisation.\n\nLook at the [standard OL3 cluster example](http://openlayers.org/en/master/examples/cluster.html) or [the repo example](http://viglino.github.io/OL3-AnimatedCluster) to know how to define such a function.\n\n\n## Licence\n\nOL3-ext is licenced under the **French Opensource BSD** compatible CeCILL-B FREE SOFTWARE LICENSE.  \n (c) 2016 - Jean-Marc Viglino\n\n\u003e Full text license in English: (http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.txt)  \n\u003e Full text license in French: (http://www.cecill.info/licences/Licence_CeCILL-B_V1-fr.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviglino%2Fol3-animatedcluster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviglino%2Fol3-animatedcluster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviglino%2Fol3-animatedcluster/lists"}