addLine is called for any line feature that is being added to the FeatureCollection.
generateIntersections goes through our hash map and adds an intersection feature to the collection wherever it finds out.