Sources@knitui/map
Raster Source
RasterSource loads slippy-map raster tiles (XYZ tiles or a TileJSON url) and pairs with a RasterLayer to paint them. Use it as a full basemap, or stack it semi-transparently over a vector style for an overlay.
WebiOSAndroidnative split10 own props2 examples
import { RasterSource } from "@knitui/map";Playground
Loading playground…
<RasterSource />Examples
OSMTiles
OpenStreetMap raster tiles as a full-screen basemap.
Loading example…
Semi Transparent Overlay
The same OSM tiles at rasterOpacity: 0.5, blended over the streets basemap.
Loading example…
Props
| Prop | Type | Default | Description |
|---|---|---|---|
attribution | string | undefined | — | |
children | ReactNode | — | |
id | string | undefined | — | |
maxzoom | number | undefined | — | |
minzoom | number | undefined | — | |
scheme | "xyz" | "tms" | undefined | — | |
testID | string | undefined | — | |
tiles | string[] | undefined | — | |
tileSize | number | undefined | — | |
url | string | undefined | — |