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



local Layer = {
  Identifier = "MODIS_Water_Mask",
  Name = "MODIS Water Mask",
  Enabled = asset.enabled,
  FilePath = asset.localResource("modis_water_mask.wms")
}


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

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

asset.export("layer", Layer)



asset.meta = {
  Name = "MODIS Water Mask",
  Version = "1.0",
  Description = "MODIS Water Mask layer for Earth globe",
  Author = "NASA EOSDIS Global Imagery Browse Services",
  URL = "https://earthdata.nasa.gov/eosdis/science-system-description/"..
    "eosdis-components/gibs",
  License = "NASA"
}
