local globeIdentifier = asset.require("../../mars").Mars.Identifier

local layer = {
  Identifier = "MDEM200M",
  Name = "HRSC MOLA Blended DEM Global 200m v2",
  Enabled = asset.enabled,
  FilePath = asset.localResource("mdem200m.wms"),
  Description = [[Blend of data derived from the Mars Orbiter Laser Altimeter 
    (MOLA, an instrument aboard NASA's Mars Global Surveyor spacecraft), and data derived
    from the High-Resolution Stereo Camera (HRSC, an instrument aboard the European Space
    Agency's Mars Express spacecraft). The average accuracy is ~100 meters in horizontal 
    position and the elevation uncertainty is at least ±3 m. This tiled elevation layer,
    hosted by ESRI, is made available using lossless LERC compression.
    (Description from URL)]],
}

asset.onInitialize(function()
  openspace.globebrowsing.addLayer(globeIdentifier, "HeightLayers", layer)
end)

asset.onDeinitialize(function()
  openspace.globebrowsing.deleteLayer(globeIdentifier, "HeightLayers", layer)
end)

asset.export("layer", layer)



asset.meta = {
  Name = "Mars HRSC MOLA Blended DEM Global 200m v2",
  Version = "1.1",
  Description = "ESRI Hosted ars HRSC MOLA Blended DEM",
  Author = "esri_astro",
  URL = "https://www.arcgis.com/home/item.html?id=225adad86379474ebc3d51a74573c99b",
  License = "Esri Master License Agreement"
}


