From deff87a577c09963857f9ba0253f14a1faec0222 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Mon, 15 Oct 2012 17:23:11 -0700 Subject: [PATCH] Reduce flicker in data browser --- app/assets/javascripts/index/browse.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/index/browse.js b/app/assets/javascripts/index/browse.js index e151a2dc3..65ed5f785 100644 --- a/app/assets/javascripts/index/browse.js +++ b/app/assets/javascripts/index/browse.js @@ -154,10 +154,6 @@ $(document).ready(function () { setStatus(I18n.t('browse.start_rjs.loading')); - $("#browse_content").empty(); - dataLayer.clearLayers(); - selectedLayer = null; - var url = "/api/" + OSM.API_VERSION + "/map?bbox=" + browseBounds.toBBOX(); /* @@ -180,6 +176,10 @@ $(document).ready(function () { success: function (xml) { clearStatus(); + $("#browse_content").empty(); + dataLayer.clearLayers(); + selectedLayer = null; + dataLayer.addData(xml); layersById = {}; -- 2.39.5