From 4f52a36dc151a25d3e5ba06e77995a4010de9b8c Mon Sep 17 00:00:00 2001 From: geoloep Date: Wed, 23 Nov 2016 16:29:06 +0100 Subject: [PATCH] docstrings: Update bounds property in Projection.leafdoc (#5139) * Update Projection.leafdoc To me it appears that the property bounds expects 'Bounds' and not 'LatLngBounds'. All the included projections pass 'Bounds'. Giving the area where the projection is valid in latlng's did not work for me. * Update Projection.leafdoc --- src/geo/projection/Projection.leafdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/geo/projection/Projection.leafdoc b/src/geo/projection/Projection.leafdoc index 0cbe8025..348e22de 100644 --- a/src/geo/projection/Projection.leafdoc +++ b/src/geo/projection/Projection.leafdoc @@ -4,8 +4,8 @@ An object with methods for projecting geographical coordinates of the world onto a flat surface (and back). See [Map projection](http://en.wikipedia.org/wiki/Map_projection). -@property bounds: LatLngBounds -The bounds where the projection is valid +@property bounds: Bounds +The bounds (specified in CRS units) where the projection is valid @method project(latlng: LatLng): Point Projects geographical coordinates into a 2D point. Only accepts actual `L.LatLng` instances, not arrays.