react-leaflet#LayerGroup JavaScript Examples

The following examples show how to use react-leaflet#LayerGroup. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: OtherLayer.js    From react-sample-projects with MIT License 6 votes vote down vote up
OtherLayer = () => {
  return (
    <Map center={defaultCenter} zoom={13}>
      <TileLayer
        attribution='&amp;copy <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
        url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
      />
      <LayerGroup>
        <Circle color="yellow" radius={400} center={whiteHouse} />
        <Circle color="green" radius={200} center={eisenhowerOffice} />
      </LayerGroup>
      <FeatureGroup opacity={1} color="tomato">
        <Circle color="red" radius={200} center={washingtonMountain} />
        <Circle color="blue" radius={200} center={lincolnMemorial} />
        <Circle color="magenta" radius={200} center={worlwarTwoMemorial} />
        <Circle color="purple" radius={200} center={jeffersonMemorial} />
      </FeatureGroup>
    </Map>
  );
}