Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a getBounds method for Path #253

Merged
merged 2 commits into from
Aug 16, 2011
Merged

Adding a getBounds method for Path #253

merged 2 commits into from
Aug 16, 2011

Conversation

JasonSanford
Copy link
Member

I needed a getBounds method for paths and this is what I came up with (and what seems to work). This seemed a little too easy so perhaps I missed something.

@mourner
Copy link
Member

mourner commented Aug 15, 2011

Thanks! Please move it from L.Path to L.Polyline (which Polygon also extends) - there are L.Path children that don't have getLatLngs() - e.g. Circle.

mourner added a commit that referenced this pull request Aug 16, 2011
Adding a getBounds method for Path
@mourner mourner merged commit 8734ddc into Leaflet:master Aug 16, 2011
@mourner
Copy link
Member

mourner commented Aug 16, 2011

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants