Commits

Ken Bolton committed 2eeb061

Remove circle on directions click.

  • Participants
  • Parent commits d867ae8

Comments (0)

Files changed (1)

reploc/templates/reploc/locator.js

         map.setZoom(4);
         map.panTo(centerMarker.getPosition());
         locMatch.slideUp('slow', function () { $(this).html(''); });
-        circle.setMap(null)
+        circle.setMap(null);
         for (var m = 0; m < markers.length; m++) {
             var mkr = markers[m];
             if (mkr.getVisible()) { mkr.setMap(map); }
             directions.route(request, function(response, status) {
                 if (status == google.maps.DirectionsStatus.OK) {
                     directionsRenderer.setDirections(response);
+                    circle.setMap(null);
                 } else {
                     alert('Error: ' + status);
                 };