Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 642 Bytes

README.md

File metadata and controls

35 lines (27 loc) · 642 Bytes

react-leaflet-wmts

WMTS TileLayer plugin to react-leaflet

Uses https://github.com/mylen/leaflet.TileLayer.WMTS

Installing

yarn add react-leaflet-wmts

Usage

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>
  );
}