Skip to content

Not all options will be recognized #1

Description

@balzer82

I am basically using the example, but extended with some additional options, like so:

class App extends Component {
  render() {
    const WrappedHexbinLayer = withLeaflet(HexbinLayer);
    const options = {
      opacity: 0.8,
      tooltipContent: function(d) { return 'Test' },
    };

    return (
      <Map center={[51.0, 13.0]} zoom={17}
        style={{
          height: "100vh"
        }}>
        <TileLayer
          url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
          attribution='&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
        />
        <WrappedHexbinLayer data={data} {...options} />
      </Map>
    )
  }
}

See the option for the tooltipContent, which overwrites the "Count:" with some other String. This is not working. Did I understand it wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions