You should check that `this.SEGMENT_WRITERS[geometry.getType()]` is defined, otherwise this code will break if someone adds an unsupported geometry to the the `ol.FeatureOverlay` (like an `ol.geom.Circle`, for example).