Skip to content

Adding an empty L.Polyline to a canvas rendered map causes errors #5497

Closed
@tephenavies

Description

How to reproduce

  • Leaflet version I'm using: 1.0.3
  • Browser (with version) I'm using: Chrome 57
  • OS/Platform (with version) I'm using: OS X 10.11
  1. Create L.Polyline with empty latlngs
  2. Add that layer to an L.Map with preferCanvas: true

What behaviour I'm expecting and which behaviour I'm seeing

Nothing should be displayed, but it should run without console errors.

Minimal example reproducing the issue

  • this example is as simple as possible
  • this example does not rely on any third party code

https://codepen.io/steve9164/pen/dWzdVW

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions