maplibre-react-native icon indicating copy to clipboard operation
maplibre-react-native copied to clipboard

Rendering from local .mbtiles file?

Open aLemonFox opened this issue 4 months ago • 2 comments

Is it possible to add a local .mbtiles file onto the map using a <VectorSource>? I was thinking of doing something like this but I couldn't figure out a way to make it work:

const Overlay: FC<OverlayProps> = ({}) => {
   return (
      <VectorSource id={'overlay-layer'} url={'mbtiles://my-file.mbtiles'}>
         <FillLayer props-... />
      </VectorSource>
   );
}

If this is not supported, what are the options to do such a thing without using a remote server?

aLemonFox avatar Feb 19 '24 19:02 aLemonFox