react-leaflet-wmts

0.1.0 • Public • Published

react-leaflet-wmts

WMTS TileLayer plugin to react-leaflet

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

Installing

yarn add mpivaa/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';
 
// Then inside react-leaflet Map
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>
  );
}

Readme

Keywords

none

Package Sidebar

Install

npm i react-leaflet-wmts

Weekly Downloads

3

Version

0.1.0

License

MIT

Unpacked Size

11.2 kB

Total Files

4

Last publish

Collaborators

  • m.pivaa