3 ms·
Show HN: StackMaps - Interactive Maps of StackExchange Communites
- johndbritton 14y agoI recently discovered the Travel StackExchange site and thought it would be cool to see where my fellow travelers live so I built a map using the StackExchange API. A nice side-effect of the shared API was that my app works for all StackExchange communities.
- johns 14y agoJDB! Why am I not showing up in SF? :)
- johndbritton 14y agoYou're probably not in the 500 top users by reputation. Click "show more users" a few times and you'll show up as long as you have your location in your profile.
- johns 14y agoWow didn't realize I had fallen so far in the rankings. Thanks for ruining my day ;)
- johndbritton 14y agobummer, better get to it.
- reustle 14y agoLooks good! It's times like these that make me wish it was more of a standard to use your ZipCode as your location instead of city (and convert to city in the background), so the points on maps like this would be more spread out in cities. Also, you should make the "Choose a StackExchange Site" drop down more prominent since it is a required first step.
- johndbritton 14y agoI don't know how postal codes work internationally and I'd imagine that geocoding them might be a bit easier but not as simple as it could be. I'm a big fan of giving users a map and letting them drop a pin at a specific zoom level. This lets them be as specific or as fuzzy as they want and it gives the benefit of not needing geocoding. Will make the choose site more attention grabbing.
- asimeqi 14y agoI like this very much. How did you implement the effect where if there is more than a user at a given point, when you click on that point a bunch of pins open radially from that point? Is that called clustering?
- gmac 14y agoHe's used this library of mine: https://github.com/jawj/OverlappingMarkerSpiderfier https://github.com/jawj/OverlappingMarkerSpiderfier It's not quite the same thing as clustering -- there's more info on this in the README.
- asimeqi 14y agoThat is a great library. I like it that the shadow is darker if more points are overlapping. Thanks for sharing.
- gmac 14y agoThe shadow darkness is a happy by-product of the markers' semi-transparency. You're welcome!
- johndbritton 14y agoI originally tried to use the MarkerClusterer from Google but that didn't work because at the closest zoom level the pins directly on top of each other weren't clickable. The Spiderfier is much better suited for this problem (lots of people geocoded with the same city, state, or other location name).
- chrisbroadfoot 14y agoGreat library, dude. People often ask how to do this, I will definitely be pointing them towards your library.
- johndbritton 14y agoI used an excellent library called OverlappingMarkerSpiderfier. You can find the code on github here: https://github.com/jawj/OverlappingMarkerSpiderfier https://github.com/jawj/OverlappingMarkerSpiderfier There's also a link in the credits.
- guyht 14y agoI think it might need a bit of tweaking http://imgur.com/FBiL5 http://imgur.com/FBiL5
- johndbritton 14y agoYeah, that's the Yahoo geocoding service acting up again.
- pgrote 14y agoOdd. If you don't enter a city for New Zealand, the mapping assumes you are in the South Atlantic Ocean. :-)
- johndbritton 14y agoGoogle has a really low rate limit for geocoding, so I'm using a geocoder from Yahoo. Not much I can do about the quality of the less well defined locations.
- pgrote 14y agoI wonder how Yahoo! got it wrong? It looks like they are good with the latitude. Thanks for the response.
- chrisbroadfoot 14y agoNice! One suggestion: when a cluster of markers are clicked, pop out all of the children of the cluster - you can do this by setting the 'zIndex' of the marker. Also, it would be even better to dim out all of the other markers.
- johndbritton 14y agoGood idea, I'll add this.