jlord / sheetsee.js

:eyes: :chart_with_upwards_trend: Visualize Data from a Google Spreadsheet
jlord.github.io/sheetsee.js
Other
2.96k stars 884 forks source link

Two markers with the same lat/long - one hides the other. #10

Closed jlord closed 11 years ago

jlord commented 11 years ago

I'll have to dig into some mapbox.js/leaflet.js docs to see if there is any way to handle this.

jrsconfitto commented 11 years ago

It looks like there's two potential ways to do this (i could be wrong though).

  1. Use the Marker Clustering plugin for Leaflet
  2. Try to set a property on the base map being used to overlap markers? (from this support ticket).

i plan to keep looking into the first option by following this example using Marker Cluster from MapBox, but i wanted to share what i found in case i don't get to it soon.

i haven't tested the second option yet because i'm over the usage limits on my free account :cry:, but i don't think it's a great solution because it requires editing the base map and won't be controllable/accessible from sheetsee.

jlord commented 11 years ago

Oh yeah, I like the clustering option!

jrsconfitto commented 11 years ago

Good. i'm pretty sure i can get this working, i just need to spend some time with the JS and the Leaflet docs to better understand how the markers work.

jlord commented 11 years ago

Yay!