News for hackers. Stuff that matters.
Re:I built a vector map from scratch by gregsadetsky on Thursday August 18, 2022 @12:26PM (#32511725)
Fantastic post, such a wonderful step by step guide!

Although everything loaded and “worked” on mobile (I’m using iOS), two small interaction hiccups would be great to solve:

- when panning (on mobile), the panned distance seemed to track the finger’s movement with some factor i.e. when moving “1 cm” of “finger space” (i.e. real world movement), the map moved by more than “1 cm”. (Sorry for the weird units, ha)

- the common pinch zoom gesture is either being detected as something else or just not working? I was able to zoom, somehow, but not in any controlled way

These don’t take anything away from the tutorial! I think that fixing these would make the learning/demo experience even smoother, that’s all.

I may give it a stab since you shared the code :) Cheers

---

Opened an issue to track this: https://github.com/kochis/webgl-map/issues/1

Re:I built a vector map from scratch by kocheez75 on Thursday August 18, 2022 @12:34PM (#32511836)
Yeah, I think this is a known issue with hammer.js[1]. I noticed it too, but didn't spend too much time digging in.

[1]: https://stackoverflow.com/questions/42872774/hammer-js-exhib...

Re:I built a vector map from scratch by app4soft on Thursday August 18, 2022 @04:51PM (#32514725)
As I see demo map[0] uses OpenStreetMap Data, but in such case on demo map page[0] there should be copyright[1] info.

[0] https://ckochis.com/webgl-map-demo

[1] https://www.openstreetmap.org/copyright

Re:I built a vector map from scratch by kocheez75 on Thursday August 18, 2022 @05:05PM (#32514890)
Good callout, I’ll add that in. Most map libs add that automatically, so an oversight on my part.