GeTeach.com Geo 4 Good 2021
TL;DR: Here is a GitHub Repository for those who just want to see Earth’s Changing Oceans html, CSS, and JavaScript. (Link) Or make a copy of the demonstrated Google Earth Project. (Link)
It is always great to share Google Earth Project ideas at Geo for Good Summits. This year’s presentation utilized Earth Web’s new tile features along with folders. I originally wanted to create a post on how the demonstrated Google Earth Project was created, but I thought it would be better to create a simple project that uses the same basic ideas and structure.
The simple story created in this post is Austin and Las Vegas’ urban growth 2000 – 2020. This post will be a guide starting from creating and exporting map tiles using Google Earth Engine through the creation of an Earth Project using these tiles. Being completely unaware of people’s knowledge and skills, the lack of real time meaningful feedback, and the use of multiple platforms creates many challenges for this post. My hope is that the videos and code snippets help, but feel free to reach out. You can find me on Twitter @geteach.
Lastly, the typical disclaimer. I am a high school geography teacher and not a professional developer. Hopefully this tinkering adds value to whatever you are trying to create.
Table of Contents
- I. Environment / Setting
- II. Setup Google Cloud Storage to House Map Tiles
- III. Create and Export Map Data Using Earth Engine
- IV. Create Google Earth Project and Folder Structure
- V. Programmatically Control Earth Project Folders and Features (The Secret Sauce)
- VI. Create Introduction Splash Screen (Set the Presentation)
- VII. Create 1st Panel within Austin Folder
- VIII. Create 2nd Panel within Las Vegas Folder
- IX. Tutorial GitHub Repository
I. Environment / Setting
- Google Chrome
- Google Cloud Storage
- Earth Engine – Code Editor
- Image Viewer – Any should work (IrfanView – Windows)
- VS Code
- All Tutorial Files used are in this GitHub Repository
- Patience
II. Setup Google Cloud Storage to House Map Tiles
- Create a bucket for the project
- Create paths to store Map tiles and other assets
- Austin/2000
- Austin/2020
- LV/2000
- LV/2020
III. Create and Export Map Data Using Earth Engine
- Create cloudless map layers of Landsat 7 data
- Using bounding box to only save map data for Austin and Las Vegas
- Export the Map Tiles to Google’s Cloud Storage
- Export the Panel Images to Google’s Cloud Storage
IV. Create Google Earth Project and Folder Structure
- Create New Google Earth Project
- Create full screen splash introduction placeholder
- Create Folders for…
- Austin
- Austin 2000
- Austin 2020
- Las Vegas
- Las Vegas 2000
- Las Vegas 2020
- Austin
- Add Tiled Maps
- To get folder/feature IDs – Export Project as kml
V. Programmatically Control Earth Project Folders and Features (The Secret Sauce)
- Export KML
- Create hidden div for links
- Create JavaScript loop to show/hide features
VI. Create Introduction Splash Screen (Set the Presentation)
- Add image, title and description to introduction screen
- Set the “CLICK TO EXPLORE” button
- Copy/paste HTML into Google Earth Project
VII. Create 1st Panel within Austin Folder
- Edit Carousel, Text
- Set Features to hide/show
- Set “Flyto” function for Austin Panel
VIII. Create 2nd Panel within Las Vegas Folder
- Edit Carousel, Text
- Set Features to hide/show
- Set “Flyto” function for Las Vegas Panel