Hi HN
I've used a lot of vector maps in the past, and was always fascinated by the technology, so I decided to try and build one from scratch as a way to learn more about how it works, and also as a reason to (finally) learn WebGL.
I've uploaded the source to GitHub https://github.com/kochis/webgl-map
Hope someone finds it useful / informative, and open to any feedback or tips as well. Cheers!
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