Skip to content

fill-outline-color on borders of clipped tiles  #1738

Closed

Description

@leblowl

Hey all! So whenever I clip my geometries to the borders of their respective tiles, fill-outline-color draws all the borders. It makes sense in one way, but realistically I'd love it to recognize matching polygons in adjacent tiles. I'm not totally sure how it is supposed to work, so I'm asking ya'll. Is this intended behavior or am I doing something wrong?

I split my tiles with ST_Intersection, using the ne_10m_ocean dataset from natural earth:

       SELECT
           'Ocean' AS name,
           sum(way_area)::bigint AS area,
           'ocean' AS kind,
           'naturalearthdata.com' AS source,
           ST_Union(ST_Intersection(the_geom, !bbox!)) AS __geometry__,
           max(gid) AS __id__
       FROM
           ne_10m_ocean
       WHERE
           ST_Intersects(the_geom, !bbox!)

And the result at zoom level 4 with fill-outline-color set to #000:
fill-outline-color

Thank you

Activity

  1. jfirebaugh commented on Nov 20, 2015

    @jfirebaugh
    Contributor

    You should add a buffer to the vector tiles, and clip the polygons to these buffered dimensions rather than to the exact tile extent.

    We're adding the following language to the next version of the vector tile specification to clarify this:

    A layer MUST contain an extent that describes the width and height of the tile in integer coordinates. The geometries within the Vector Tile MAY extend past the bounds of the tile's area as defined by the extent. Geometries that extend past the tile's area as defined by extent are often used as a buffer for rendering features that overlap multiple adjacent tiles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions