• Stars
    star
    188
  • Rank 204,437 (Top 5 %)
  • Language
    JavaScript
  • License
    Other
  • Created almost 11 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Examples of using GIBS with various web mapping libraries

gibs-web-examples

This project shows how to use GIBS as a tile source for OpenLayers, Leaflet, Cesium, Mapbox GL, Bing, and Google Maps

Live Examples

Overview

Clone the repository, then:

npm install
npm start

or for hot-reload

npm install
npm run dev

Navigate your browser to http://localhost:3001.

Most examples show a single layer. Visit the GIBS Visualization Product Catalog for parameters needed to display other layers.

The WMTS standard does not provide a way to select a specific time or date for a layer. GIBS has implemented this feature in the following way:

  • WMTS KVP: Use the TIME parameter to select a day in YYYY-MM-DD format.
  • WMTS REST: Add the day in YYYY-MM-DD format between style name and the tile matrix set name

See the "Rolling Seven Day Slider" examples for more information.

The Web Mercator endpoints return a blank map at zoom level zero due to a bug in the tiling software. This issue will be fixed sometime in the future.

Some of the mapping libraries will attempt to fetch tiles outside the boundaries of the tile matrix. GIBS returns error codes when these tile requests are made.

Worldview is a web application that uses GIBS as its primary image source.

OpenLayers

These examples use OpenLayers version 7.2.2.

If geometry transformations are required using coordinates in the polar systems, proj4js, version 2, must be included. This example uses proj4js version 2.8.1. This is not required to simply display the map.

Mapbox Vector Tile (MVT) Examples

Mapbox Vector Tiles are available for some of the GIBS vector datasets. These Openlayers examples show how to style vector tiles using Openlayers styling classes, how to style vector tiles with the Mapbox Styles that are provided by GIBS in the getCapabilities, and how to visualize feature data through map interactions.

Leaflet

This example uses Leaflet version 1.9.3.

To properly support the polar projections, the Proj4Leaflet plugin must be used. This example uses Proj4Leaflet version 1.0.1.

Gaps can sometimes be seen between the map tiles. Use the workaround found here: Leaflet/Leaflet#3575

Cesium

This example uses Cesium version 1.102.

Use this GeographicTilingScheme when accessing the EPSG:4326 GIBS endpoint.

Mapbox GL

This example uses Mapbox GL version 1.13.3.

MapLibre GL

This example uses MapLibre GL version 2.4.0.

Bing

This example uses the Bing Maps Control, version 8.

Bing requires and API key. The key should be inserted here

Google Maps

This example uses the Google Maps API, version 3.

Google Maps requires an API key. The key should be inserted here

Questions

Send questions or comments to [email protected]

More Repositories

1

worldview

Interactive interface for browsing global, full-resolution satellite imagery
JavaScript
691
star
2

onearth

High-performance web services for tiled raster imagery and vector tiles
Python
175
star
3

mrf

GDAL-compatible file format driver designed for fast access to imagery
C++
77
star
4

data-curtains

Exploring data curtains using Cesium
JavaScript
22
star
5

onearth-boxes

OnEarth VM
Shell
18
star
6

worldview-design

Wireframes and designs for NASA Worldview
JavaScript
17
star
7

gpu-data-to-image

A GPU-accelerated image generation toolkit for building image tiles and MRF files on-demand from Earth science data
Python
14
star
8

worldview-options-eosdis

Configuration and branding for NASA EOSDIS Worldview
9
star
9

gibs-unity-examples

Examples of using GIBS in Unity in various ways
C#
7
star
10

worldview-components

Modular components used with NASA Worldview
JavaScript
6
star
11

onearth-image-analytics

An image server providing on-demand analytics/resampling of OnEarth imagery.
Python
6
star
12

tie

(DEPRECATED) The Imagery Exchange is the data management and workflow system for imagery capturing and generation
Groovy
6
star
13

gibs-ml

Machine learning for anomaly detection in Global Imagery Browse Services (GIBS) Earth satellite imagery.
Jupyter Notebook
5
star
14

gibs-api-docs

4
star
15

daisy

DAta to Image SYstem (DAISY) prototype web clients
JavaScript
4
star
16

dynamic-data-vis-web-prototypes

TypeScript
4
star
17

worldview-ar

Augmented Reality (AR) prototype to view Earth imagery
C#
3
star
18

trufflehog-actions-scan

Scan repository for secrets with basic defaults in place for easy setup.
Dockerfile
2
star
19

worldview-options-template

Generic branding with basic configuration
HTML
2
star
20

gibs-validation-slackbot

Slack Bot for validating data in GIBS Earth Satellite Imagery.
Python
1
star
21

EIC-Monitor

JavaScript
1
star
22

eic-embed-test

A simple Vite React application for testing embed & EIC modes
TypeScript
1
star