Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Realtime Geospatial Visualisation with SignalR ...

Realtime Geospatial Visualisation with SignalR and OpenLayers

My talk for DDDSW5.

mthornal

May 17, 2014
Tweet

More Decks by mthornal

Other Decks in Programming

Transcript

  1. © 2013 DMGT | 6 Data • Dynamic vs static

    data • Realtime vs recorded data • Animation e.g. position, size, colour • Download or API Maps • Stylised, Satellite/Aerial, Terrain • Google Maps, Bing Maps, Open Street Map, Map Box, Ordnance Survey KEY CONCEPTS
  2. © 2013 DMGT | 8 Realtime visualisation of geotagged tweets

    • Twitter Public Status Streaming Filter API • SignalR - realtime server generated communication • OpenLayers – flexible, open standards JavaScript mapping library • AngularJS - client-side data binding TECHNOLOGIES
  3. © 2013 DMGT | 9 C# Hub – the base

    class for custom hubs IHubContext - enables access to specific hub instances IHubConnectionContext – provides access to connected clients GlobalHost.ConnectionManager.GetHubContext<T> - returns IHubContext<T> IHubContext.Clients – returns IHubConnectionContext IHubConnectionContext.All – dynamic access to client code enabling server to client direct RPC JavaScript $.connection.//hub name//.client – base object to hang callback functions off $.connection.hub.start() – connect to server to start receiving callbacks SIGNALR - HTTP://SIGNALR.NET/
  4. © 2013 DMGT | 10 OpenLayers.Map – the main map

    class OpenLayers.Layer.OSM – OpenStreetMap layer OpenLayers.Layer.XYZ – alternative tile layer OpenLayers.Layer.Vector – vector layer for features OpenLayers.Feature.Vector – a vector feature e.g. point, line, polygon OpenLayers.Geometry.Point – point feature OpenLayers.LonLat – longitude, latitude pair OpenLayers.Control.SelectFeature – control for interacting with features OpenLayers.Popup.FramedCloud – stylable feature popup OPENLAYERS - HTTP://WWW.OPENLAYERS.ORG/