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

setDirection(azimuth, 0) is a full circle #28

Open
gibbonsj opened this issue Aug 7, 2018 · 0 comments
Open

setDirection(azimuth, 0) is a full circle #28

gibbonsj opened this issue Aug 7, 2018 · 0 comments

Comments

@gibbonsj
Copy link

gibbonsj commented Aug 7, 2018

Problem:
setDirection(azimuth, 0) produces a circle, not a LOB.

  L.semiCircle([0, 0], {radius: 500000})
        .setDirection(90, 0)
        .addTo(map);

Previous versions and live demo screen shot depict a LOB.

Software Tested:
Leaflet 1.3.3
Leaflet-semicircle 2.0.2

Workaround:

  var EPSILON = 1E-9
  L.semiCircle([0, 0], {radius: 500000})
        .setDirection(90, EPSILON)
        .addTo(map);
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

No branches or pull requests

1 participant