Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

MultiPolygon will not render with lodash 4.x #1822

Open
@sime

Description

@sime

Trying to find the Polygon (within a MultiPolygon) with the most points fails with lodash 4.x.

error within chunking iterator: TypeError: Cannot read property 'max' of undefined

http://plnkr.co/edit/fugjhdeVZ10IRcgVj0td?p=preview

_.forEach does not accept a 3rd parameter as it is implemented here:

_.forEach(path.coordinates, (polygon, index) ->
if polygon[0].length > this.max
this.max = polygon[0].length
this.index = index
, trackMaxVertices)

I'm assuming lodash v4 is a hard dependency.

Update: Seems to happen with all 4.x version.s

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions