Skip to content

vicapow/react-map-gl-example-overlay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-map-gl-example-overlay

An example of a standalone react-map-gl-overlay. Use it as a starting point for creating your own custom overlay.

Usage

var ExampleOverlay = require('react-map-gl-example-overlay');
var cities = require('example-cities');

Where each element in cities has the form: {latitude, longitude}.

    render() {
      var {viewport} = this.state.viewport;
      return <MapGL {...viewport}>
        <ExampleOverlay {...viewport} locations={cities} />
      </MapGL>;
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published