Coder Social home page Coder Social logo

hvusyslogic / asp-mappy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from noodlefrenzy/asp-mappy

0.0 1.0 0.0 704 KB

Example of wiring up SignalR to connect an EventHub receiving GPS data to a Leaflet map rendering it.

License: MIT License

C# 47.52% CSS 0.60% ASP 0.02% HTML 1.00% JavaScript 50.86%

asp-mappy's Introduction

asp-mappy

Example of wiring up SignalR to connect an EventHub receiving GPS data to a Leaflet map rendering it.

Introduction

Simple codebase wiring up geo-data from Event Hubs through SignalR to a Leaflet.js front-end. The Index.cshtml contains the lion's share of the JS code for dealing with Leaflet layers (for the paths, markers, and heatmaps). RouteHub.cs is a simple SignalR hub (see this article on hubs for details). AzureUtilities.cs contains code for connecting to the various pieces (service bus, event hubs, table storage), as well as the IEventProcessor implementation.

See my post on my blog for details.

Other Software

This code relies on Leaflet.js and SignalR through reference, and includes the following directly:

  • Chroma: Used to randomize the color of paths with prettier colors than I could do myself. It's a fantastic library for working with colors and color-spaces, highly recommended.
  • Leaflet-heat: Used to generate heatmaps on the leaflet map for identifying "hot spots" in walking traffic. Incredibly easy to use.

I've included licenses for both of the above within the source tree at the same level at which I'm using them.

asp-mappy's People

Contributors

noodlefrenzy avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.