fix: cache spatial edges after graph mode switch
fix: cache spatial edges after graph mode switch

Ensure that spatial edges gets cached if cache node was
called before setting graph mode to spatial.

mapillary/mapillary-js,mapillary/mapillary-js