fixed toGeoJSON method to include propoerties