Skip to content

Commit

Permalink
fix: remove experimental algorithms (#262)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: DBScanAlgorithm and KMeansAlgorithm have been removed.
  • Loading branch information
jpoehnelt authored Mar 17, 2022
1 parent 27f6bec commit 46dcb69
Show file tree
Hide file tree
Showing 8 changed files with 16,658 additions and 293 deletions.
2 changes: 0 additions & 2 deletions examples/algorithms.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@
<div id="container">
<div class="map" id="noop"></div>
<div class="map" id="grid"></div>
<div class="map" id="kmeans"></div>
<div class="map" id="dbscan"></div>
<div class="map" id="supercluster"></div>
</div>
<script src="algorithms.js" type="module"></script>
Expand Down
16 changes: 1 addition & 15 deletions examples/algorithms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@

import {
AbstractAlgorithm,
DBScanAlgorithm,
GridAlgorithm,
KmeansAlgorithm,
MarkerClusterer,
NoopAlgorithm,
SuperClusterAlgorithm,
Expand All @@ -36,7 +34,7 @@ const mapOptions = {
new Loader(LOADER_OPTIONS).load().then(() => {
const maps: google.maps.Map[] = [];

const panels: [Element, AbstractAlgorithm, string][] = [
const panels: [HTMLElement, AbstractAlgorithm, string][] = [
[
document.getElementById("noop"),
new NoopAlgorithm({}),
Expand All @@ -47,18 +45,6 @@ new Loader(LOADER_OPTIONS).load().then(() => {
new GridAlgorithm({ maxDistance: 40000 }),
`new GridAlgorithm({})`,
],
[
document.getElementById("kmeans"),
new KmeansAlgorithm({
numberOfClusters: 10,
}),
`new KmeansAlgorithm({})`,
],
[
document.getElementById("dbscan"),
new DBScanAlgorithm({}),
`new DBScanAlgorithm({})`,
],
[
document.getElementById("supercluster"),
new SuperClusterAlgorithm({}),
Expand Down
2 changes: 1 addition & 1 deletion examples/renderers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const interpolatedRenderer = {
new Loader(LOADER_OPTIONS).load().then(() => {
const maps: google.maps.Map[] = [];

const panels: [Element, Renderer, string][] = [
const panels: [HTMLElement, Renderer, string][] = [
[
document.getElementById("default"),
new DefaultRenderer(),
Expand Down
Loading

0 comments on commit 46dcb69

Please sign in to comment.