mapbox / geojson.io

A quick, simple tool for creating, viewing, and sharing spatial data
http://geojson.io/
ISC License
1.87k stars 560 forks source link

geojson with null properties throws an error #851

Closed chriswhong closed 1 year ago

chriswhong commented 1 year ago

http://geojson.io/#data=data:application/json,%7B%22type%22%3A%22Feature%22%2C%22geometry%22%3A%7B%22type%22%3A%22Point%22%2C%22coordinates%22%3A%5B-73.796904%2C42.708105%5D%7D%2C%22properties%22%3Anull%7D

Cannot read properties of null (reading 'marker-symbol')
    at util.js:130:23

Looks like we are checking for marker-symbol without making sure properties exists first.