paulmach / orb

Types and utilities for working with 2d geometry in Golang
MIT License
910 stars 103 forks source link

Clipping layers to bounds for MapboxGL rendering #5

Closed karsten42 closed 6 years ago

karsten42 commented 6 years ago

I think it is useful to have the clipping functionality directly on the layers. This allows you to easily create vector tiles that can be rendered using mapbox-gl. Otherwise it is not quite obvious that you need to do the clipping and you keep wondering why there are some rendering artifacts at times. At least thats what I experienced. ^^ (addresses #3)

paulmach commented 6 years ago

I like this approach 👍