给小叶圆形映射一个圆的属性?

问题描述 投票:0回答:1

我正在使用*传单创建地图”这个细节,只是用Leaflet创建的地图,使其成为circle-shaped我想充分认识这个很棒的工具的创造者以及其他瓷砖的创造者...我希望attribution遵循circle shape

有人可以用下面显示的代码帮助我吗?

Div

***
<div id="carteJour"></div>

样式

          /* style et forme de ma carte*/
  #carteJour {
  margin-top: 10%;
  width: 700px; 
  height: 700px; 
  border-radius: 350px; 
  position: absolute; 
  z-index: 500;
  text-align: center;  
  left: 50%;
  top: 29%;
  transform: translate(-50%, -50%);
  border-style: dashed;
  border-radius: 50%;}

瓷砖层链接

     L.tileLayer('https://stamen-tiles-{s}.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png', {
   attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> &mdash; Map data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
   subdomains: 'abcd',
   minZoom: 1,
   maxZoom: 23,
 }).addTo(mymap);        

非常感谢您抽出宝贵的时间。

dictionary geometry leaflet shapes attribution
1个回答
1
投票

您可以创建一个归因控件,然后将其容器复制到map div,以便将其居中。

© www.soinside.com 2019 - 2024. All rights reserved.