New SnapshotLoader and associated connections
[potlatch2.git] / net / systemeD / potlatch2 / collections / VectorBackgrounds.as
index 0a120e9433d02176dbf1d325f76c0a4ddcf637a3..6381feed972f362630c40710bca438e167a9d680 100644 (file)
@@ -90,6 +90,18 @@ package net.systemeD.potlatch2.collections {
                   }
                   break;
 
+                case "SnapshotLoader":
+                  if (set.url) {
+                    name ||= 'Snapshot Server'
+                    var snapshotLoader:SnapshotLoader = new SnapshotLoader(_map, String(set.url), name);
+                    if (set.@loaded == "true") {
+                      snapshotLoader.load();
+                    }
+                  } else {
+                    trace("VectorBackground: no url for SnapshotLoader");
+                  }
+                  break;
+
                 default:
                   trace("AutoVectorBackground: unknown loader");
               }