local globeIdentifier = asset.require("scene/solarsystem//planets/mercury/mercury").Mercury.Identifier

local layer = {
  Identifier = "Mercury_Messenger_USGS_DEM_665m_v2_HillshadeColor",
  Name = [[MSGR MDIS, ColorHillshade Global]],
  FilePath = asset.localResource("Mercury_Messenger_USGS_DEM_665m_v2_HillshadeColor.vrt"),
  Description = [[This is a colorized shaded-relief generated from the USGS Astrogeology Science Center’s Mercury MESSENGER Global DEM 665m v2 data product providing global coverage of Mercury. This color hillshade was generated in ArcPro with the shaded-relief raster function. The resolution of the original DEM used to create this product is 64 pixels/degree (665 m/pixel). The control network used for registration contains tie points that are sample/line coordinates with geometric locations (derived from SPICE) that are automatically measured across the overlapping image areas. Elevation values are in meters and referred to a radius of 2439400m. The legend conveys the mapping colors to elevation values (meters).]]
}
  
asset.onInitialize(function()
  openspace.globebrowsing.addLayer(globeIdentifier, "ColorLayers", layer)
end)
  
asset.onDeinitialize(function()
  openspace.globebrowsing.deleteLayer(globeIdentifier, "ColorLayers", layer.Identifier)
end)
  
asset.export("layer", layer)


asset.meta = {
  Name = [[MSGR MDIS, ColorHillshade Global]],
  Version = "1.0",
  Author = "NASA/Treks",
  URL = "https://trek.nasa.gov/mercury/#v=0.1&x=0&y=0&z=1&p=urn:ogc:def:crs:IAU2000::19900&d=&l=Mercury_Messenger_USGS_DEM_665m_v2_HillshadeColor%2Ctrue%2C1&b=mercury&e=-180.0%2C-90.0%2C180.0%2C90.0&sfv=&w=",
  License = "NASA/Treks",
  Description = [[MSGR MDIS, ColorHillshade Global layer from NASA/Treks for Mercury]]
}
