mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +00:00
30 lines
763 B
JavaScript
30 lines
763 B
JavaScript
import * as React from 'react';
|
|
|
|
function ControlPanel() {
|
|
return (
|
|
<div className="control-panel">
|
|
<h3>Marker, Popup, NavigationControl and FullscreenControl </h3>
|
|
<p>
|
|
Map showing top 20 most populated cities of the United States. Click on a marker to learn
|
|
more.
|
|
</p>
|
|
<p>
|
|
Data source:{' '}
|
|
<a href="https://en.wikipedia.org/wiki/List_of_United_States_cities_by_population">
|
|
Wikipedia
|
|
</a>
|
|
</p>
|
|
<div className="source-link">
|
|
<a
|
|
href="https://github.com/visgl/react-map-gl/tree/5.3-release/examples/controls"
|
|
target="_new"
|
|
>
|
|
View Code ↗
|
|
</a>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default React.memo(ControlPanel);
|