]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/start.rjs
Include node coordinates on the data browser view for a node. Fixes #1856.
[rails.git] / app / views / browse / start.rjs
index f38b1dc80937cb0c9f6355236fd87a2b50b01e49..1cf423163f7e2b08ef274e7d5572226348bfe3f5 100644 (file)
@@ -50,11 +50,6 @@ page << <<EOJ
     if (browseActive) {
       browseActive = false;
 
-      if (browseDataLayer) {
-        browseDataLayer.destroy();
-        browseDataLayer = null; 
-      } 
-
       if (browseSelectControl) {   
         browseSelectControl.destroy();  
         browseSelectControl = null;
@@ -70,6 +65,11 @@ page << <<EOJ
         browseActiveFeature = null; 
       }
 
+      if (browseDataLayer) {
+        browseDataLayer.destroy();
+        browseDataLayer = null; 
+      } 
+
       map.dataLayer.setVisibility(false);
       map.events.unregister("moveend", map, showData);
     }    
@@ -210,7 +210,10 @@ page << <<EOJ
 
       browseDataLayer = new OpenLayers.Layer.GML("Data", url, {
         format: OpenLayers.Format.OSM,
-        formatOptions: { checkTags: true },
+        formatOptions: {
+          checkTags: true, 
+          interestingTagsExclude: ['source','source_ref','source:ref','history','attribution','created_by','tiger:county','tiger:tlid','tiger:upload_uuid']
+        },
         maxFeatures: 100,
         requestSuccess: customDataLoader,
         displayInLayerSwitcher: false,