Replaced addPolylines with replacePolylines. [Fixes #71228736]