Reformat dates. Surprisingly limited options for parsing and displaying dates.
[potlatch2.git] / net / systemeD / potlatch2 / controller / SelectedMarker.as
index 3e6207b0e0f26a904f823b2aeced060d33729a31..f158efe2fd47700d212f6aaec4dd9b43670da5cb 100644 (file)
@@ -3,13 +3,16 @@ package net.systemeD.potlatch2.controller {
        import flash.ui.Keyboard;
     import net.systemeD.potlatch2.EditController;
     import net.systemeD.halcyon.connection.*;
+    import net.systemeD.halcyon.VectorLayer;
        import net.systemeD.halcyon.Globals;
 
     public class SelectedMarker extends ControllerState {
         protected var initMarker:Marker;
+        protected var layer:VectorLayer;
 
-        public function SelectedMarker(marker:Marker) {
+        public function SelectedMarker(marker:Marker, layer:VectorLayer) {
             initMarker = marker;
+            this.layer = layer;
         }
 
         protected function selectMarker(marker:Marker):void {
@@ -19,7 +22,7 @@ package net.systemeD.potlatch2.controller {
             clearSelection(this);
             controller.map.setHighlight(marker, { selected: true });
             selection = [marker];
-            controller.updateSelectionUI();
+            controller.updateSelectionUI(layer);
             initMarker = marker;
         }