Closed fosskers closed 8 years ago
This would also make the conversion to other backends clearer, since they would have their own toGeoJson
, etc, functions, and there wouldn't be a top-level tile
function name clash.
The solution to the explicit @VectorTile
problem is to use the type family to supply the relationship both ways, then have two typeclasses: ToProtobuf
and FromProtobuf
.
Something like:
Although there would be no instance for
Feature
s, because of the Layer-Feature coupling.This addition would remove the arbitrarily named functions like
layer
andunlayer
in favour of theto
andfrom
pair. The only change the user would see would be the deprecation of thetile
/untile
functions in favour of{to,from}Protobuf
.