Skip to content
Discussion options

You must be logged in to vote

I managed to fix this by adding the tileSize: 512 line... not sure why this works, but it did.

return new TileLayer({
        id: "labels-layer-3d",
        data: `https://api.mapbox.com/styles/v1/mapbox/light-v11/tiles/{z}/{x}/{y}@2x?access_token=${MAPBOX_TOKEN}`,
        minZoom: 8,
        maxZoom: 18,
        tileSize: 512, // Added this 
        renderSubLayers: (props) => {
          const { boundingBox } = props.tile;

          return new BitmapLayer(props, {
            id: `${props.id}-bitmap`,
            data: undefined,
            image: props.data,
            bounds: [
              boundingBox[0][0],
              boundingBox[0][1],
              boundingBox[1][0],

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by charlieforward9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant