Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

WebMercatorViewport is a constructor not a function #72

Open
trevorwhealy opened this issue Aug 29, 2018 · 2 comments
Open

WebMercatorViewport is a constructor not a function #72

trevorwhealy opened this issue Aug 29, 2018 · 2 comments

Comments

@trevorwhealy
Copy link

The ReadMe docs state usage like this:

const viewport = WebMercatorViewport({})

but it should be:

const viewport = new WebMercatorViewport({})

https://github.com/uber-common/viewport-mercator-project/blob/9aa65be379971ef53a9eb581bb58f2d4b9a9cc2c/docs/get-started/README.md

https://github.com/uber-common/viewport-mercator-project/blob/9aa65be379971ef53a9eb581bb58f2d4b9a9cc2c/docs/README.md

@ibgreen
Copy link
Contributor

ibgreen commented Aug 29, 2018

Thanks for reporting. Fixed on master, will be updated next time docs are republished.

@TrySound
Copy link
Contributor

TrySound commented Aug 3, 2019

Is this still relevant?

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

No branches or pull requests

4 participants