import * as React from 'react' ; import { TileLayer } from 'react-leaflet' ; import { BuildingMapTileset } from '../../config/tileserver-config' ; import { getTileLayerUrl } from './get-tile-layer-url' ; export function BuildingDataLayer ( { tileset , revisionId } ) { return < TileLayer key = { `${ tileset }-${ revisionId }` } url = { getTileLayerUrl ( tileset , { rev : revisionId } ) } minZoom = { 9 } maxZoom = { 19 } detectRetina = { true } / > ; }