Socket
Book a DemoInstallSign in
Socket

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

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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.

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

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:

To install

npm install

To run

npm run start

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

Keywords

react

FAQs

Package last updated on 30 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts