Page MenuHomePhabricator

Should we use the marker cluster plugin with `<mapframe>` and `<maplink>` ?
Open, LowestPublic

Description

Now that we have a ext.kartographer.lib.prunecluster containing the marker cluster plugin,

  • Should we use the marker cluster plugin with <mapframe> and <maplink> ?
    • should it be configurable or enabled by default?
    • should we allow inline plugin configuration? (see below: weight, category, size)
  • How can we configure the plugin to handle all our use cases greacefully?

Examples:

without marker clusterwith marker cluster
(zoom=4)
(zoom=4)
(zoom=5)
(zoom=5)
(zoom=6)
(zoom=6)

As https://github.com/SINTEF-9012/PruneCluster#features lists:

The clusters can be updated in realtime. It's perfect for live situations.

You can specify the weight of each marker.
For example, you may want to add more importance to a marker representing an incident, than a marker representing a tweet.

You can specify a category for the markers. Then a small object representing the number of markers for each category is attached to the clusters. This way, you can create cluster icons adapted to their content.
For example, you may want to add more importance to a marker representing an incident, than a marker representing a tweet.

The size of a cluster can be adjusted on the fly

The markers can be filtered easily with no performance cost.

Event Timeline

Restricted Application removed a project: Patch-For-Review. · View Herald TranscriptMay 27 2016, 10:12 PM
Restricted Application added a subscriber: Zppix. · View Herald Transcript
Yurik moved this task from Unsorted to UI tasks on the Maps (Kartographer) board.May 28 2016, 2:09 PM
Yurik added a comment.Jun 7 2016, 9:50 PM

Is this task about loading the large datafile with all of wikivoyage data points, or is it about when should we enable/disable leaflet poi clustering plugin?

JGirault renamed this task from Decide if and when <maplink> and <mapframe> shoud load the marker cluster resource to Should we use the marker cluster plugin with `<mapframe>` and `<maplink>` ?.Jul 2 2016, 1:41 AM
JGirault updated the task description. (Show Details)
Yurik added a comment.Jul 2 2016, 1:45 AM

My opinion is that we should by default, and if there is a demand for it, allow users to turn it off with an attribute. One thing - in the images above, the ungrouped markers on the right side do not show with the original icons. I presume this is simply a demo limitation, not the future behavior.

Yurik removed JGirault as the assignee of this task.
Yurik removed a project: Maps.Dec 15 2016, 4:40 AM
MSantos triaged this task as Lowest priority.Nov 27 2018, 4:16 PM