Better clustering behaviour for makers on the same location #39

Closed
JeroenDeDauw opened this Issue Jun 26, 2014 · 6 comments

Comments

4 participants
Owner

JeroenDeDauw commented Jun 26, 2014

http://sourceforge.net/p/semediawiki/mailman/message/32510196/

Hi all,

I have this inline query:

{{#ask:[[Has Coordinates::+]]
|?Has Coordinates
|format=googlemaps
|markercluster=yes
|height=400
}}

Has Coordinates was geocoded from a string property Country in a Template
as follows:

...
! Countries
| {{#arraymap:{{{Countries|}}}|,|x|[[Country::x]] {{#set:Has
Coordinates={{#geocode:x|geonames}}
...

And its pretty nice! My problem is if I have multiple items with the exact
same coordinates (say, I have 10 pages for Sudan), the markerclusterer
logic in Semantic Maps just zooms in and doesn't have any processing to
show the items on the exact same location. It just shows the cluster.

Ideally, something similar to this "spidercluster" effect would be nice:

http://www.ejw.de/ejw-vor-ort/ (click on a marker to show the spider
effect).

Thanks in advance!
Joel

Hi Jeroen,
Worked on this over the weekend and just did a pull request (#41). It was on 2.01 though, since that's what I'm using.

Thanks,
Joel

Collaborator

PeterTheOne commented Jun 14, 2016

We could use:

Also see: #141

@PeterTheOne PeterTheOne referenced this issue in SemanticMediaWiki/SemanticMaps Jun 14, 2016

Closed

Make two locations with the same coordinates distinguishable #65

Collaborator

kghbln commented Jun 14, 2016

See a live example on sandbox.smw.o for this.

JeroenDeDauw added a commit that referenced this issue Sep 18, 2016

Merge pull request #39 from guoyunhebrave/master
change all attr('value') to .val()
Owner

JeroenDeDauw commented Apr 13, 2017

I think this is effectively fixed by the markercluster support that we've now had for quite some time... I updated the example on the sandbox with a cluster map: https://sandbox.semantic-mediawiki.org/wiki/Locations

Collaborator

kghbln commented Apr 13, 2017

I think this is effectively fixed by the markercluster support that we've now had for quite some time... I updated the example on the sandbox with a cluster map: https://sandbox.semantic-mediawiki.org/wiki/Locations

Indeed. Great! I did not think of this. Thanks for the example.

Collaborator

PeterTheOne commented Jun 2, 2017

fyi #200 is still open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment