drualcman / Maps

Blazor Library to track delivery or other things and show in a map from where is moving

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Map Blazor Library

This is a component library extract from the training about Blazing Pizza (https://github.com/dotnet-presentations/blazor-workshop/). Can be used to track orders in a map.

How to use

Add this lines to the Index.html file, or in the html file you must be used the component.

<!DOCTYPE html>
<html>
    <head> 
        <!-- Reference to Maps CSS Library-->
        <link href="_content/Maps/leaflet/leaflet.css" rel="stylesheet" />
    </head>
    <body>
        <!-- Reference to Maps JAVASCRIPT Library-->
        <script src="_content/Maps/DeliveryMap.js"></script>
        <script src="_content/Maps/leaflet/leaflet.js"></script>
    </body>
</html>

Add that to the component where you will to use the map

<div class="map">
    <Map Markers="[List<Marker>]"/>
</div> 

where List<Marker> have 2 positions, start GPS position, and arrived GPS position. Can send only one, then don't show tracking.

Implementation needed

You must be implemented the functionality to send List from you app. Here have a simulate function to do this action.

About

Blazor Library to track delivery or other things and show in a map from where is moving


Languages

Language:CSS 67.5%Language:JavaScript 16.2%Language:C# 15.5%Language:HTML 0.8%