local globe = asset.require("../../earth")



local Name = "Undersea Communication Cables"
local Identifier = "noaa-sos-overlays-cables"
local Description = [[Overlays are datasets with transparent backgrounds that contain
foreground data used to augment other SOS datasets.This particular dataset overlays
undersea communications cables onto any dataset that you are viewing. The data was found
at Wikipedia]]
local URL = "https://sos.noaa.gov/catalog/datasets/undersea-communication-cables/"


local syncedDirectory = asset.syncedResource({
  Name = Name,
  Type = "HttpSynchronization",
  Identifier = Identifier,
  Version = 1
})


local Layer = {
  Identifier = Identifier,
  Name = Name,
  Enabled = asset.enabled,
  FilePath = syncedDirectory .. "4096.png",
  Description = Description
}


asset.onInitialize(function()
  openspace.globebrowsing.addLayer(globe.Earth.Identifier, "Overlays", Layer)
end)

asset.onDeinitialize(function()
  openspace.globebrowsing.deleteLayer(globe.Earth.Identifier, "Overlays", Layer)
end)

asset.export(Layer)



asset.meta = {
  Name = Name,
  Version = "1.0",
  Description = Description .. "Data provided by the National Oceanic and Atmospheric Administration",
  Author = "National Oceanic and Atmospheric Administration",
  URL = URL,
  License = "https://sos.noaa.gov/copyright/"
}
