mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-25 16:02:50 +00:00
25 lines
708 B
JavaScript
25 lines
708 B
JavaScript
import React, {PureComponent} from 'react';
|
|
|
|
const defaultContainer = ({children}) => <div className="control-panel">{children}</div>;
|
|
|
|
export default class ControlPanel extends PureComponent {
|
|
render() {
|
|
const Container = this.props.containerComponent || defaultContainer;
|
|
|
|
return (
|
|
<Container>
|
|
<h3>Create and Style Clusters</h3>
|
|
<p>Use Mapbox GL JS' built-in functions to visualize points as clusters.</p>
|
|
<div className="source-link">
|
|
<a
|
|
href="https://github.com/uber/react-map-gl/tree/5.0-release/examples/clusters"
|
|
target="_new"
|
|
>
|
|
View Code ↗
|
|
</a>
|
|
</div>
|
|
</Container>
|
|
);
|
|
}
|
|
}
|