Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm not so sure this is a great reference. On a brand new iPhone 6S with pretty much nothing else open, the performance of scrolling that map is terrible.


My bad, the site does not degrade correctly to mobile devices. There's a nasty hack for hijacking focus on the map in order to keep it as a hero and being able to scroll down that has not been tested enough. Also note this is keeping a websocket connection open and receives streaming data for changes.

Maybe a direct map works better https://citybik.es/map/citi-bike-nyc

In any case, I just wanted to show how markers with 'DivIcon' [1] as they are called in leaflet can be used to create cool looking marker styling without resorting to images / svg / canvas.

[1]: http://leafletjs.com/reference.html#divicon




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: