矩形 Rectangle


Rectangle:表示地图上的矩形。

下面的示例向地图添加了一个多边形:

Document
// 定义矩形的地理边界
var bounds = [[38, 121], [39, 122]];
// 创建一个橘黄色矩形
FMap.rectangle(bounds, {color: "#ff7800", weight: 1}).addTo(map);
// 使矩形适应屏幕
map.fitBounds(bounds);

results matching ""

    No results matching ""