clear selection rect when switching to location mode
diff --git a/asterix-examples/src/main/resources/black-cherry/static/js/cherry.js b/asterix-examples/src/main/resources/black-cherry/static/js/cherry.js
index 8d8d8e4..6ec2305 100755
--- a/asterix-examples/src/main/resources/black-cherry/static/js/cherry.js
+++ b/asterix-examples/src/main/resources/black-cherry/static/js/cherry.js
@@ -178,8 +178,8 @@
     });
     $('#location-button').on('change', function (e) {
         $("#location-text-box").removeAttr("disabled");
+        selectionRectangle.setMap(null);
         rectangleManager.setMap(null);
-        selectionRectangle = null;
         rectangleManager.setDrawingMode(google.maps.drawing.OverlayType.RECTANGLE);
     });
     $("#selection-button").trigger("click");