Our R&D team often dives into modern technologies and cutting-edge solutions, therefore one of its recent projects took its aim at an open source library for Blazor – a web framework first released in 2018, based on .NET Core.
Within a scope of a Razor Page we’ve got an instance of a class Circle and we want to change its radius. In order to do this, we’re calling a method of the same name as L.Circle has in its original implementation – “SetRadius”:
Keeping the code flexible
Although our team focused on reaching a high level of similarity to Leaflet’s hierarchical structure of classes, there are also parts that work differently. One of the most significant of them is a way of creating objects. We decided to use Factory method pattern to increase usability and readability of the code. The usage has been shown in the example below:
BlazorMaps powered by open source
BlazorMaps is an open source project and it still grows. The first version covers areas related to markers, polylines, polygons, shapes, events and basic operations on a map, such as adjusting zoom and re-centering, but the infrastructure we’ve built allows to extend it easily with increasing coverage of functions and classes of Leaflet.js. Everyone can get it via [NuGet package manager], read the code on [GitHub] and get familiar with the rest of our features, commit and create pull requests and issues. We’re proud to release our open source project and we can’t wait to build a community around it!
Błażej Stiskun – Junior Developer, enthusiast of data science. He believes that the goal is more important than the means so he doesn`t strictly stick to one favourite technology but if he had to, it would be Python.
This programmer enjoys solving problems and feels anxious when there are not any around. Fascinated web development since he has joined FIS-SST.