OlSourceXYZ
OlSourceXYZ(
__namedParameters):Element
Defined in: src/ol-source-xyz.tsx:32
OpenLayers XYZ tile source component for custom tile servers using the XYZ URL pattern. Supports any tile server that follows the {z}/{x}/{y} URL structure. Must be used as a child of OlTileLayer.
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”OlSourceXYZProps
Returns
Section titled “Returns”Element
Example
Section titled “Example”<OlTileLayer> <OlSourceXYZ ref={sourceRef} initialOptions={{ url: 'https://tile.server.com/{z}/{x}/{y}.png', maxZoom: 19 }} /></OlTileLayer>