Skip to content

Bugfix: Define optional 'properties' property if not present#6

Open
eastbayjake wants to merge 1 commit intomattcooper:masterfrom
eastbayjake:bugfix-properties
Open

Bugfix: Define optional 'properties' property if not present#6
eastbayjake wants to merge 1 commit intomattcooper:masterfrom
eastbayjake:bugfix-properties

Conversation

@eastbayjake
Copy link
Copy Markdown

GeoJSON Point features require type and coordinates properties, but properties is optional. The current loadPointData method assumes that features.properties will exist and errors on the features.properties.index assignment if features.properties is not present. This fix initializes features.properties as an empty object if not present so the assignment on the next line should always work.

GeoJSON Point features require  and  properties, but  is optional. The current  method assumes that  will exist and errors on the  assignment if  is not present. This fix initializes  as an empty object if not present so the assignment on the next line should always work.
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.

1 participant