File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ func MarshalGzipped(layers Layers) ([]byte, error) {
3939 return buf .Bytes (), nil
4040}
4141
42- // Marshal will take a set of layers and encode them into a Mapbox Vector Tile format .
42+ // MarshalToVectorTile will take a set of layers and encode them into a Mapbox Vector Tile proto structure .
4343// Features that have a nil geometry, for some reason, will be skipped and not included.
4444func MarshalToVectorTile (layers Layers ) (* vectortile.Tile , error ) {
4545 vt := & vectortile.Tile {
@@ -70,7 +70,7 @@ func MarshalToVectorTile(layers Layers) (*vectortile.Tile, error) {
7070 vt .Layers = append (vt .Layers , layer )
7171 }
7272
73- return vt
73+ return vt , nil
7474}
7575
7676// Marshal will take a set of layers and encode them into a Mapbox Vector Tile format.
You can’t perform that action at this time.
0 commit comments