Mehigh17 / BlazorLeaflet

BlazorLeaflet is a Blazor component wrapping Leaflet's APIs, offering a simple and homogeneous implementation of the Leaflet maps.
MIT License
180 stars 91 forks source link

GeoJsonDataLayer: support for PointToLayer methods that customize the markers #38

Open chucker opened 4 years ago

chucker commented 4 years ago

Leaflet lets you set a pointToLayer method that will be called for every point.

This PR adds basic support to customize the marker that gets created, and also adds a sample in the docs. We could later on expand this for other layer types.

chucker commented 4 years ago

Hmm, those first two commits don't belong there. Can I retroactively fix this?

(edit) fixed

chucker commented 4 years ago

I think this is now ready to be reviewed.

One thing I'm not happy with is the Properties dict. It'd be nicer if those were strongly-typed.