switch options type from path to polyline for polygon and rectangle - fixes #4427 (#4444)

This commit is contained in:
Nathan Cahill 2016-04-15 09:22:51 -06:00 committed by Yohan Boniface
parent ce9b9f58bd
commit c10f405a11
2 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ L.Polygon = L.Polyline.extend({
});
// @factory L.polygon(latlngs: LatLng[], options?: Path options)
// @factory L.polygon(latlngs: LatLng[], options?: Polyline options)
L.polygon = function (latlngs, options) {
return new L.Polygon(latlngs, options);
};

View File

@ -48,7 +48,7 @@ L.Rectangle = L.Polygon.extend({
});
// @factory L.rectangle(latLngBounds: LatLngBounds, options?: Path options)
// @factory L.rectangle(latLngBounds: LatLngBounds, options?: Polyline options)
L.rectangle = function (latLngBounds, options) {
return new L.Rectangle(latLngBounds, options);
};