func (self *BBoxTagFilterPlugin) applyFilterItem(coord *gopnik.TileCoord, fi *filterItem, inBb bool) { if inBb { for _, tag := range fi.Drop { coord.Tags = strArrDrop(coord.Tags, tag) } for _, tag := range fi.Add { coord.Tags = strArrAdd(coord.Tags, tag) } } else { for _, tag := range fi.DropOtherwise { coord.Tags = strArrDrop(coord.Tags, tag) } for _, tag := range fi.AddOtherwise { coord.Tags = strArrAdd(coord.Tags, tag) } } }