Below is a map of lunar sample displays, put together with data from NASA's curator website, provided by NASA's data portal. The data, a complete list of lunar sample displays, contains the location and a small description of each display.
I put the data into a KML file by location. Each location has the name, description of the sample, and coordinates of its location, as shown below:
<Placemark>
<name>U.S. Space and Rocket Center</name>
<description><![CDATA[Apollo 12 Lunar Sample Number 12065,15]]></description>
<Point>
<coordinates>-76.135361,36.841885,0</coordinates>
</Point>
</Placemark>
This map consists of three layers: a map layer, a vector layer, and a tile layer. The map layer was created with OpenLayers and the map tiles are from ArcGIS. The vector layer reads in the data from the KML file, which gets represented by custom moon icons. Hovering over each moon icon displays a tooltip, created with Bootstrap, with the name of the location and the samples that are there.
Setting up the map was simple, since I have done it before. Getting the tooltips to function the way that I wanted was a challenge. I followed an example from OpenLayers that utilized tooltips in the same way that I was planning to. The tooltips weren't working, and after reviewing the JavaScript code multiple times, I finally found that the problem was in the HTML. I needed to add
<div data-html="true" id="info">
in my map div in order to display the tooltips. Once that was working, all that was left to do was format the text that was displayed in the tooltip.The map above only includes lunar samples that are available for public display in exhibits. It does not include the samples given as gifts to 135 countries and the 50 states by President Nixon in the 1970s.
The data and code can be found on GitHub.
The lunar sample is the accurate one for try type my essay user. The special sample is making some form of test for the specimen description. This one is from NASA and its mention on the web site of NASA for further details.
ReplyDelete