• Stars
    star
    345
  • Rank 122,750 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 4 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

React component for the Procedural GL JS library

Procedural GL React component

Procedural GL JS is a library for creating 3D map experiences on the web, written in JavaScript and WebGL. It is built on top of THREE.js.

It provides an easy-to-use, but powerful framework to allow beautiful landscapes of the outdoors to be embedded into web pages. It loads super-fast and is optimized for mobile devices.

Demo | Docs | Overlay playground | Elevation data | Source

For more information see the project page.

React component

This repository contains a React wrapper for the library allowing it to be easily included into projects built with React.

Install

This component does not bundle React, nor Procedural GL JS but instead expects them as peer dependencies. As such you will need to install them if they are not part of your project already.

npm install react
npm install react-dom
npm install procedural-gl
npm install procedural-gl-react

Usage

import ProceduralMap from 'procedural-gl-react';

// Configure library as usual (see main project)
<ProceduralMap
  datasource={datasource}
  compassVisible={true}
  displayLocation={{
    latitude: 47.5,
    longitude: 13.55
  }}/>

Example

An more complete example of how to integrate this library with React can be found here.

More Repositories

1

procedural-gl-js

Mobile-first 3D mapping engine with emphasis on user experience
JavaScript
1,238
star
2

android-visualizer

Takes the input from the Android MediaPlayer and displays visualizations, like in iTunes or WinAmp
Java
804
star
3

lod-terrain

WebGL terrain with seamlessly changing level of detail
JavaScript
441
star
4

go_images

Example code for generating images in Go
Go
120
star
5

amd-three.js

AMD + three.js example application layout
JavaScript
86
star
6

peaks-of-austria

Explore the peaks of Austria in 3D - powered by Procedural GL JS
JavaScript
59
star
7

new-zealand-3d

Explore New Zealand in 3D - powered by Procedural GL JS
JavaScript
48
star
8

glsl-validator

Command line tool for validating GLSL files
Python
32
star
9

photo.gl

Example of 2D image processing using JavaScript, WebGL & GLSL
HTML
22
star
10

Cherrola

An aggressive Pomodoro timer for OSX
Objective-C
20
star
11

tron.js

Tron game written in WebGL/THREE.js for future.js 2014 workshop
JavaScript
14
star
12

volcanoes-of-japan

Explore the volcanoes of Japan in 3D - powered by Procedural GL JS
JavaScript
14
star
13

safari-webgl

Rendering of Safari logo using WebGL
JavaScript
12
star
14

webgl-tombstone

Demo combining canvas drawing and webgl shaders
JavaScript
10
star
15

procedural-gl-react-example

Example implementation of the Procedural GL React component
JavaScript
6
star
16

googleTV-hackathon

Project built at Google TV hackathon
Java
6
star
17

tetris.gl

Example of implementing tetris-like simulation on the GPU using WebGL
JavaScript
3
star
18

att-hackathon

JavaScript
3
star
19

vim

Vim Script
2
star
20

terrajs-slides

Terra.js slides
1
star
21

render-2-texture

Demo of bug in iOS WebGL when rendering to a floating point texture
JavaScript
1
star
22

tmux-tools

Collection of useful utilities built on tmux
Shell
1
star