Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/76.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/32.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
Html 如何使用传单为我的地图获得一个正方形?_Html_Css_Reactjs_Leaflet_React Leaflet - Fatal编程技术网

Html 如何使用传单为我的地图获得一个正方形?

Html 如何使用传单为我的地图获得一个正方形?,html,css,reactjs,leaflet,react-leaflet,Html,Css,Reactjs,Leaflet,React Leaflet,我正在使用react js,我希望在渲染中有一个正方形而不是矩形: <div class="row" style={{marginTop: 40, marginLeft: 80, marginRight: 80, marginBottom: 200}}> <Map center={[43.6, 3.8833]} zoom={12}> <TileLayer url="https://

我正在使用react js,我希望在渲染中有一个正方形而不是矩形:

<div class="row" style={{marginTop: 40, marginLeft: 80, marginRight: 80, marginBottom: 200}}>
              <Map center={[43.6, 3.8833]} zoom={12}>
      <TileLayer
        url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
        attribution='&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
      />
    </Map>
    </div>

我用一个div,但我不知道如何得到一个正方形

你能帮我吗

谢谢大家!