From: Andy Allan Date: Fri, 15 Oct 2010 17:20:25 +0000 (+0000) Subject: Remove unnecessary public call, and add notes about future plans X-Git-Tag: 0.5~166 X-Git-Url: https://git.openstreetmap.org/potlatch2.git/commitdiff_plain/2a7d94aa6655c81125f037a22cb6694e524e6ed8 Remove unnecessary public call, and add notes about future plans --- diff --git a/TODO.txt b/TODO.txt index 5ebe386a..b1c617d2 100644 --- a/TODO.txt +++ b/TODO.txt @@ -69,7 +69,6 @@ Potlatch 2: main outstanding issues * Rework the loading text * Have a remove button for removing loaded traces * Have a check button for simplifying traces -* Refactor the importer.as so that downloading the files can be done via the connection, not just directly Requested enhancements ---------------------- diff --git a/net/systemeD/halcyon/connection/Trace.as b/net/systemeD/halcyon/connection/Trace.as index c408f9a8..7eb5787f 100644 --- a/net/systemeD/halcyon/connection/Trace.as +++ b/net/systemeD/halcyon/connection/Trace.as @@ -54,11 +54,8 @@ package net.systemeD.halcyon.connection { return tags.join(", "); } - public function get traceData():XML { - return XML(_traceData); - } - private function fetchFromServer():void { + // todo - needs proper error handling Connection.getConnectionInstance().fetchTrace(id, saveTraceData); dispatchEvent(new Event("loading_data")); } @@ -77,6 +74,8 @@ package net.systemeD.halcyon.connection { } public function addToMap():void { + // this allows adding and removing traces from the map, without re-downloading + // the data from the server repeatedly. if (!_isLoaded) { addEventListener("loaded_data", processEvent); fetchFromServer(); @@ -86,6 +85,10 @@ package net.systemeD.halcyon.connection { } } + public function removeFromMap():void { + //todo + } + private function processEvent(e:Event):void { process(); }