I am trying to make distance line for user click to nearest point. After few clicks on map I got bounds are not valid, I got error like this Uncaught TypeError: Cannot read