WMTS TileLayer plugin to react-leaflet
Uses https://github.com/mylen/leaflet.TileLayer.WMTS
yarn add react-leaflet-wmts
Just use as any other react-leaflet TileLayer
import React from 'react';
import WMTSTileLayer from 'react-leaflet-wmts';
import { Map } from 'react-leaflet';
function Example(props) {
return (
<Map>
<WMTSTileLayer
url="<some-wmts-url>"
layer="<some-wmts-layer>"
tilematrixSet="<wmts-projection>"
format="image/png",
transparent={true},
opacity={1}
{/* ... */}
/>
</Map>
);
}