Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs React单张地图显示开放式街道地图运输层_Reactjs_Openstreetmap_React Leaflet - Fatal编程技术网

Reactjs React单张地图显示开放式街道地图运输层

Reactjs React单张地图显示开放式街道地图运输层,reactjs,openstreetmap,react-leaflet,Reactjs,Openstreetmap,React Leaflet,我在下面的URL显示的Tillelayer中使用React传单地图 <TileLayer attribution='&amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors' url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png" /> 它显示标准地图。但我想展示一下交通地图

我在下面的URL显示的Tillelayer中使用React传单地图

<TileLayer
    attribution='&amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
    url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
  />

它显示标准地图。但我想展示一下交通地图

我如何做到这一点?有人能帮我吗?

根据这个,你必须从我这里拿到瓷砖


https://tile.thunderforest.com/transport/{z} /{x}/{y}.png?apikey=

这个thunderforest是开源的吗?请自己做一些研究。据我所知,Thunderforest的渲染样式尚未打开。