Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save burritojustice/2d967b31c3bd11165b4439ebe98ecb01 to your computer and use it in GitHub Desktop.
Save burritojustice/2d967b31c3bd11165b4439ebe98ecb01 to your computer and use it in GitHub Desktop.
mars elevation, landers, features
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html lang="en">
<head>
<title>My Web Map</title>
<meta charset="utf-8">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.3/dist/leaflet.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet-geocoder-mapzen/1.9.4/leaflet-geocoder-mapzen.css">
<style>
html, body { margin: 0; padding: 0; }
#map { height: 100%; width: 100%; position: absolute; }
</style>
</head>
<body>
<div id="map"></div>
<script src="https://unpkg.com/leaflet@1.0.3/dist/leaflet.js"></script>
<script src="https://www.nextzen.org/tangram/tangram.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet-geocoder-mapzen/1.9.4/leaflet-geocoder-mapzen.js"></script>
<script>
var map = L.map('map');
var layer = Tangram.leafletLayer({
scene: 'https://gist.githubusercontent.com/burritojustice/2d967b31c3bd11165b4439ebe98ecb01/raw/f5a57a4aca22954fce7c1440510a13fffcec4e4f/mars.yaml',
attribution: '<a href="https://mapzen.com/tangram" target="_blank">Tangram</a> | &copy; OSM contributors'
});
layer.addTo(map);
map.setView([-19.07, -3660.10], 2.82);
L.control.zoom({position: 'bottomright'})
var geocodingOptions = {
url: 'https://api.geocodemars.com/v1',
textStrings: {
INPUT_PLACEHOLDER: 'Try Olympus Mons or Sojourner'
},
expanded: true,
attribution: ''
};
L.control.geocoder('no-key-required', geocodingOptions).addTo(map);
</script>
</body>
</html>
scene:
background:
color: [0.000, 0.000, 0.000, 1.00]
sources:
mars:
type: MVT
url:
https://cartocdn-ashbu.global.ssl.fastly.net/nmanaud/api/v1/map/named/opm-mars-basemap-v0-1/2/{z}/{x}/{y}.mvt
hillshade:
type: MVT
url:
https://cartocdn-ashbu.global.ssl.fastly.net/nmanaud/api/v1/map/named/opm-mars-vector-hillshade/1/{z}/{x}/{y}.mvt
landers:
type: GeoJSON
url: https://gist.githubusercontent.com/burritojustice/2d967b31c3bd11165b4439ebe98ecb01/raw/8594b09096f93f723c929c397de49ed7ac8ecc64/mars_landers.geojson
features:
type: GeoJSON
url: https://gist.githubusercontent.com/burritojustice/2d967b31c3bd11165b4439ebe98ecb01/raw/dcb7b5961f3a29598dee017f8c95448e11c95f8b/gazeteer_of_planetary_nomenclature.geojson
mars_trilogy:
type: GeoJSON
url: https://gist.githubusercontent.com/burritojustice/2d967b31c3bd11165b4439ebe98ecb01/raw/8577b2a1f4698dc7456c5f1c4f279f490bf5d811/mars_trilogy_cities_descriptions.geojson
# url: https://gist.githubusercontent.com/burritojustice/2d967b31c3bd11165b4439ebe98ecb01/raw/mars_trilogy_cities_descriptions.geojson
# url: https://gist.githubusercontent.com/burritojustice/2d967b31c3bd11165b4439ebe98ecb01/raw/e5f7db8280bd7c87b91752129d4712ab9e9279ac/mars_trilogy_cities.geojson
layers:
layer0:
data: { source: hillshade}
draw:
polygons:
order: 1
color: rgb(function(){return feature.h}, function(){return feature.h}, function(){return feature.h})
layer0:
data: { source: mars}
draw:
lines:
order: 0
width: 0.4px
color: function(){return feature.fill_color}
landers:
data: { source: landers }
draw:
points:
priority: 0
collide: false
# color: red
color: |
function(){
var color = "yellow"
if (feature.source == "nasa")
{color = "blue"}
if (feature.source == "ussr")
{color = "red"}
return color
}
size: 10px
outline:
color: white
width: 2px
text:
font:
size: 10px
fill: white
stroke:
width: 2px
color: black
features:
data: { source: features}
very_high:
filter:
any:
- layer: 'Mons, montes'
# - layer: 'Chaos, chaoses'
# - layer: 'Planum, plana'
# - layer: 'Planitia, planitiae'
# - layer: 'Terra, terrae'
# - layer: 'Unda, undae'
# - layer: 'Mensa, mensae'
# - layer: 'Tholus, tholi'
all:
- $zoom: {min: 3}
draw:
# points:
# color: [1,1,1,0.4]
text:
priority: 1
font:
size: 10px
fill: yellow
stroke:
width: 3px
color: black
high:
filter:
any:
# - layer: 'Mons, montes'
- layer: 'Chaos, chaoses'
- layer: 'Planum, plana'
# - layer: 'Planitia, planitiae'
# - layer: 'Terra, terrae'
- layer: 'Unda, undae'
- layer: 'Mensa, mensae'
- layer: 'Tholus, tholi'
all:
- $zoom: {min: 3}
draw:
# points:
# color: [1,1,1,0.4]
text:
priority: 2
font:
size: 10px
fill: lightgreen
stroke:
width: 3px
color: black
low:
filter:
any:
- layer: 'Planitia, planitiae'
- layer: 'Vallis, valles'
- layer: 'Fossa, fossae'
- layer: 'Chasma, chasmata'
- layer: 'Cavus, cavi'
- layer: 'Dorsum, dorsa'
- layer: 'Rupes, rupēs'
- layer: 'Scopulus, scopuli'
all:
- $zoom: {min: 3}
draw:
# points:
# color: [1,1,1,0.4]
text:
priority: 3
font:
size: 10px
fill: lightblue
stroke:
width: 2px
color: black
# cliffs:
# filter:
# any:
# - layer: 'Dorsum, dorsa'
# - layer: 'Rupes, rupēs'
# - layer: 'Scopulus, scopuli'
# draw:
# # points:
# # color: [1,1,1,0.4]
# text:
# priority: 3
# font:
# size: 10px
# fill: red
# stroke:
# width: 2px
# color: black
biggest_things:
filter:
any:
- name: 'Valles Marineris'
- name: 'Olympus Mons'
draw:
text:
priority: 0
font:
size: 10px
fill: lightgrey
stroke:
width: 2px
color: black
big_things:
filter:
any:
- name: 'Valles Marineris'
- name: [Huygens, Schiaparelli, Greeley, Cassini, Antoniadi, Dollfus, Newton,de Vaucouleurs,Copernicus,Herschel,Schroeter,Koval'sky]
- layer: 'Planum, plana'
- layer: 'Planitia, planitiae'
- layer: 'Mons, montes'
- layer: 'Terra, terrae'
# - name: Greeley
# - name: Cassini
# - name: Antoniadi
# - name: Dollfus
draw:
text:
priority: 1
font:
size: 10px
fill: lightgrey
stroke:
width: 2px
color: black
everything:
filter:
all:
# - layer: 'Crater, craters'
- $zoom: {min: 5}
draw:
text:
priority: 4
font:
size: 10px
fill: white
stroke:
width: 1px
color: black
_mars_trilogy:
data: {source: mars_trilogy}
draw:
points:
collide: false
color: orange
size: 12px
outline:
color: |
function(){
var color = "red"
if (feature.mars_trilogy_book == "Red Mars")
{color = "red"}
if (feature.mars_trilogy_book == "Green Mars")
{color = "green"}
if (feature.mars_trilogy_book == "Blue Mars")
{color = "Blue"}
return color
}
width: 3px
# outline:
# color: darkred
# width: 3px
text:
text_source: Name
priority: 1
font:
size: 10px
fill: orange
stroke:
width: 2px
color: black
Albedo Feature These are features we observe because of variations in the amount of sunlight reflected by the martian surface. A surface that reflected all the light hitting it would have an albedo of 1.0 while a surface that absorbed all light hitting it would have an albedo of 0.0. Therefore the dark features on Mars have a lower albedo than the bright features.
Catena A linear string of craters, perhaps produced by a train of impactors, much like Shoemaker-Levy 9 did to Jupiter. Alternatively, the chain of crater-like features could be volcanic in origin and represent the collapse of subsurface lava tubes.
Cavus A crater-like, irregularly shaped depression or hollow. These are not thought to be of impact origin.
Chaos An area of jumbled or hummocky terrain that is thought to have been created as a result of groundwater sapping.
Chasma A large canyon or a depression/trough with steep sides.
Collis A smallish hill or knob. A group is referred to as colles, the plural form of collis.
Crater A circular depression created by an impacting body. Craters can be subdivided as being (from small to large) simple, complex, central peak basin, peak ring basin, and multi-ring basin. Mars is unique in that is has craters with ejecta deposits that have a unique 'flowing' appearance. It is believed that the presence of groundwater or ice is responsible for these features.
Dorsum An elongated prominence, ie. a longer than wide area of high ground. The Earth analogue would be a ridge. This term was originally used by the Romans to indicate a mountain ridge.
Fluctus Only one example of this type of feature is found on Mars - Galaxias Fluctus. The term was originally used to describe a feature on Io that looks like a flow. The latin meaning is a wave or billow. Here it is used to describe a flow-like feature.
Fossa One or more linear depressions most likely the result of faulting. These depressions are long and narrow and resemble a ditch or trench. The Earth analogue is most likely a graben. On Mars, fossa often occur in groups. A group of fossa are referred to as fossae, the plural of fossa.
Labes Used to describe those features that appear to be the result of a landslide. The latin meaning for labes is a 'falling in' or 'sinking in.'
Labyrinthus An area of intersecting liner depressions/canyons/valleys. The classic example is Noctis Labyrinthus.
Mensa An elevated area with a flat top and steep sides (think of a cake). The Earth analog would be the mesas of the US southwest.
Mons A large isolated mountain, as opposed to Montes (a chain of mountains). On Mars, most are of volcanic origin.
Patera A complex crater, or an irregularly shaped one, with low relief that has scalloped edges and radiating channel-like features. Most are thought to be volcanic in origin.
Planita A plain whose area is at a lower altitude than the surrounding regions.
Planum A reasonably smooth, flat, relatively uncratered area of ground that is higher than the surrounding region and that is bordered by steep sides. The Earth analogue would be a plateau.
Rupes A cliff or scarp that is straight/linear rather than sinuous.
Scopulus A cliff or scarp that is irregular or lobate in appearance.
Sulcus A feature that has the appearance of a furrow, ditch, or wrinkle. These often occur in groups.
Terra An extended areal region or land mass. It is used in reference to the older, cratered highlands.
Tholus An isolated, dome-shaped small mountain or hill. These are thought to be of volcanic origin. The plural form is tholi.
Unda An area of dunes that are very wave-like in appearance. The plural form is undae.
Vallis Vallis is a sinuous valley most of which are probably of fluvial origin.
Vastitas A very large lowland plain. The only feature in the Solar System to which this description has been attached is Vastitas Borealis.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
scene:
background:
color: [0.000, 0.000, 0.000, 1.00]
sources:
mars:
type: MVT
url:
https://cartocdn-ashbu.global.ssl.fastly.net/nmanaud/api/v1/map/named/opm-mars-basemap-v0-1/2/{z}/{x}/{y}.mvt
hillshade:
type: MVT
url:
https://cartocdn-ashbu.global.ssl.fastly.net/nmanaud/api/v1/map/named/opm-mars-vector-hillshade/1/{z}/{x}/{y}.mvt
landers:
type: GeoJSON
url: https://gist.githubusercontent.com/burritojustice/2d967b31c3bd11165b4439ebe98ecb01/raw/8594b09096f93f723c929c397de49ed7ac8ecc64/mars_landers.geojson
features:
type: GeoJSON
url: https://gist.githubusercontent.com/burritojustice/2d967b31c3bd11165b4439ebe98ecb01/raw/dcb7b5961f3a29598dee017f8c95448e11c95f8b/gazeteer_of_planetary_nomenclature.geojson
mars_trilogy:
type: GeoJSON
url: https://gist.githubusercontent.com/burritojustice/2d967b31c3bd11165b4439ebe98ecb01/raw/e5f7db8280bd7c87b91752129d4712ab9e9279ac/mars_trilogy_cities.geojson
layers:
layer0:
data: { source: hillshade}
draw:
polygons:
order: 1
color: rgb(function(){return feature.h}, function(){return feature.h}, function(){return feature.h})
layer0:
data: { source: mars}
draw:
lines:
order: 0
width: 0.4px
color: function(){return feature.fill_color}
landers:
data: { source: landers }
draw:
points:
priority: 0
collide: false
# color: red
color: |
function(){
var color = "orange"
if (feature.source == "nasa")
{color = "blue"}
if (feature.source == "ussr")
{color = "red"}
return color
}
size: 10px
outline:
color: white
width: 2px
text:
font:
size: 10px
fill: white
stroke:
width: 2px
color: black
features:
data: { source: features}
very_high:
filter:
any:
- layer: 'Mons, montes'
# - layer: 'Chaos, chaoses'
# - layer: 'Planum, plana'
# - layer: 'Planitia, planitiae'
# - layer: 'Terra, terrae'
# - layer: 'Unda, undae'
# - layer: 'Mensa, mensae'
# - layer: 'Tholus, tholi'
all:
- $zoom: {min: 3}
draw:
# points:
# color: [1,1,1,0.4]
text:
priority: 1
font:
size: 10px
fill: yellow
stroke:
width: 3px
color: black
high:
filter:
any:
# - layer: 'Mons, montes'
- layer: 'Chaos, chaoses'
- layer: 'Planum, plana'
# - layer: 'Planitia, planitiae'
# - layer: 'Terra, terrae'
- layer: 'Unda, undae'
- layer: 'Mensa, mensae'
- layer: 'Tholus, tholi'
all:
- $zoom: {min: 3}
draw:
# points:
# color: [1,1,1,0.4]
text:
priority: 2
font:
size: 10px
fill: lightgreen
stroke:
width: 3px
color: black
low:
filter:
any:
- layer: 'Planitia, planitiae'
- layer: 'Vallis, valles'
- layer: 'Fossa, fossae'
- layer: 'Chasma, chasmata'
- layer: 'Cavus, cavi'
- layer: 'Dorsum, dorsa'
- layer: 'Rupes, rupēs'
- layer: 'Scopulus, scopuli'
all:
- $zoom: {min: 3}
draw:
# points:
# color: [1,1,1,0.4]
text:
priority: 3
font:
size: 10px
fill: lightblue
stroke:
width: 2px
color: black
# cliffs:
# filter:
# any:
# - layer: 'Dorsum, dorsa'
# - layer: 'Rupes, rupēs'
# - layer: 'Scopulus, scopuli'
# draw:
# # points:
# # color: [1,1,1,0.4]
# text:
# priority: 3
# font:
# size: 10px
# fill: red
# stroke:
# width: 2px
# color: black
biggest_things:
filter:
any:
- name: 'Valles Marineris'
- name: 'Olympus Mons'
draw:
text:
priority: 0
font:
size: 10px
fill: lightgrey
stroke:
width: 2px
color: black
big_things:
filter:
any:
- name: 'Valles Marineris'
- name: [Huygens, Schiaparelli, Greeley, Cassini, Antoniadi, Dollfus, Newton,de Vaucouleurs,Copernicus,Herschel,Schroeter,Koval'sky]
- layer: 'Planum, plana'
- layer: 'Planitia, planitiae'
- layer: 'Mons, montes'
- layer: 'Terra, terrae'
# - name: Greeley
# - name: Cassini
# - name: Antoniadi
# - name: Dollfus
draw:
text:
priority: 1
font:
size: 10px
fill: lightgrey
stroke:
width: 2px
color: black
everything:
filter:
all:
# - layer: 'Crater, craters'
- $zoom: {min: 5}
draw:
text:
priority: 4
font:
size: 10px
fill: white
stroke:
width: 1px
color: black
_mars_trilogy:
data: {source: mars_trilogy}
draw:
points:
collide: false
color: orange
size: 12px
outline:
color: darkred
width: 3px
text:
text_source: Name
priority: 1
font:
size: 10px
fill: orange
stroke:
width: 1px
color: black
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@burritojustice
Copy link
Author

burritojustice commented Apr 3, 2018

@burritojustice
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment