Skip to content

mpivaa/react-leaflet-wmts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

WMTS Tile Layer plugin to react-leaflet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published