react-map-gl-stack-gl-overlay-example
An experiment in using stackGL in a [react-map-gl](https://github.com/uber/react-map-gl) overlay.
Last updated 5 years ago by vicapow .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-map-gl-stack-gl-overlay-example 
SYNC missed versions from official npm registry.

react-map-gl-stack-gl-overlay-example

An experiment in using stackGL in a react-map-gl overlay.

See a live demo on gh-pages

This demo uses data from http://www.andresmh.com/nyctaxitrips/

Usage

    render: function render() {
      return <MapGL ...viewportProps>
        <ExampleOverlay
          latitude={viewportProps.latitude}
          longitude={viewportProps.longitude}
          zoom={viewportProps.zoom}
          locations={locations} />
      </MapGL>;
    }

See example/main.js for a full example

Passing Tile Coordinates to GPU

This has evolved into a larger experiment in passing projected tile coordinates directly to the GPU as a performance optimization. It represents each tile coordinate as a double using two float values and uses the double-float functions from Andrew Thall's Extended-Precision Floating-Point Numbers for GPU Computation.

See also:

  1. Improving precision in your vertex transform
  2. Double Precision in OpenGL and WebGL
  3. Heavy computing with GLSL – Part 2: Emulated double precision

To install

npm install

To run

npm run start

This will start a budo server running on localhost:9966.

Current Tags

  • 0.3.0                                ...           latest (5 years ago)

3 Versions

  • 0.3.0                                ...           5 years ago
  • 0.2.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (9)
Dev Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |