-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #208 from NGMarmaduke/map-clusters
Map clusters
- Loading branch information
Showing
10 changed files
with
165 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { LONDON } from './coordinates'; | ||
|
||
export const DEFAULT_ZOOM = 11; | ||
export const DEFAULT_CENTER = LONDON; | ||
|
||
export const CLUSTER_RADIUS = 60; | ||
export const CLUSTER_MAX_ZOOM = 13; | ||
|
||
export const MARKER_SOURCE = 'markers'; | ||
export const MARKER_LAYER = 'marker-layer'; | ||
export const CLUSTER_LAYER = 'cluster-layer'; | ||
|
||
/** | ||
* The latitude offset when calculating the next map center, this offset ensures that the active | ||
* marker content is centred vertically | ||
* | ||
* The value is the maximum offset applied when the zoom level is 0 i.e. the furthest possible zoom | ||
*/ | ||
export const MOVE_TO_MARKER_MAX_LAT_OFFSET = 40; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.