ichim / LeafletForBlazor-NuGet

LeafletForBlazor NuGet Package - You can quickly add a map control to your Blazor application - 2.2.2.2 version. #12 issue, StreamLegend customization
https://www.nuget.org/packages/LeafletForBlazor#versions-body-tab
74 stars 9 forks source link

Custom Markers. #31

Open mrunks opened 5 months ago

mrunks commented 5 months ago

I was looking at the point examples and was wondering if there is a way to add custom marker icons when adding points ? And then having events on those specific markers on the map such as a right click event on the marker that pops up another dialog ?

ichim commented 5 months ago

Hello sir, For Geometric.Points there is no possibility to add icons, for now. Geometric.Points was thought to respond as quickly as possible to moveTo() request. Icons are not a good choice for this moveTo() method. However, I will also add this functionality for Geometric.Points. In addition, in the next version I will add the DataFromGeoJSON class, which will allow more display techniques. This new class will not have the possibility to move points and the performances will be those of Leaflet.

Laurentiu

ichim commented 5 months ago

Hello sir,

Starting with current version, 2.0.6.4, you can add geometric shapes form GeoJSON file.

This new functionality will allow you to add icons, tooltips, etc

https://github.com/ichim/LeafletForBlazor-NuGet/tree/main/RTM%20and%20GeoJSON%2Fworking%20with%20Files%2FGeoJSON%20from%20file