vvim / routetool

Using Google Maps API to add locations and calculate the shortest route by Traveling Salesman Algorithm
1 stars 0 forks source link

After removing all markers, reset the map #35

Open vvim opened 8 years ago

vvim commented 8 years ago

Else, DrawRoute() will not be called (because markers < 1) and the view of the map will remain the route with the removed markers.

Possible solution, in DrawRoute():

if(m_markers.count() < 1)
{
    reset_map_as_in_Form_constructor();
}