diff --git a/modules/carto/src/layers/raster-layer-vertex.glsl.ts b/modules/carto/src/layers/raster-layer-vertex.glsl.ts index 5048a25b1b1..f4b2788c9f4 100644 --- a/modules/carto/src/layers/raster-layer-vertex.glsl.ts +++ b/modules/carto/src/layers/raster-layer-vertex.glsl.ts @@ -28,7 +28,7 @@ void main(void) { int yIndex = - (gl_InstanceID / BLOCK_WIDTH); int xIndex = gl_InstanceID + (yIndex * BLOCK_WIDTH); - common_position += scale * vec2(float(xIndex), float(yIndex)); + common_position += scale * vec2(float(xIndex), float(yIndex - 1)); vec4 color = column.isStroke ? instanceLineColors : instanceFillColors; diff --git a/test/apps/carto-dynamic-tile/app.tsx b/test/apps/carto-dynamic-tile/app.tsx index 15f3d750248..6d90ab1fdfb 100644 --- a/test/apps/carto-dynamic-tile/app.tsx +++ b/test/apps/carto-dynamic-tile/app.tsx @@ -8,13 +8,9 @@ import React, {useState} from 'react'; import {createRoot} from 'react-dom/client'; import {Map} from 'react-map-gl/maplibre'; import DeckGL from '@deck.gl/react'; -import { - H3TileLayer, - RasterTileLayer, - QuadbinTileLayer, - query, - VectorTileLayer -} from '@deck.gl/carto'; +import {H3TileLayer, RasterTileLayer, QuadbinTileLayer, VectorTileLayer} from '@deck.gl/carto'; + +import {query} from '@carto/api-client'; import datasets from './datasets'; import {Layer} from '@deck.gl/core';