Giter Site home page Giter Site logo

ptv-logistics / sharpmap.widgets Goto Github PK

View Code? Open in Web Editor NEW
12.0 6.0 3.0 4.65 MB

Build responsive map applications for web and desktop

Home Page: https://sharpmapwidgets.azurewebsites.net

JavaScript 0.68% C# 96.63% HTML 2.52% ASP.NET 0.16%
javascript csharp aspnet leaflet spatial winforms wpf sharpmap leaflet-plugin mapping

sharpmap.widgets's Introduction

SharpMap.Widgets

Build responsive map applications for web and desktop

SharpMap is a powerful mapping library that supports a large variety of standards and formats. But the interactive Web- and Windows-Widgets of the SharpMap project are somehow neglected. On the other hand, "slippy map" Widgets like Leaflet or Ptv xServer.NET cannot handle mass data very well. SharpMap.Widgets shows how to combine the SharpMap renderer with these widgets, so it combines the power of SharpMap with the Look&Feel of modern widgets.

Web-Sample

Windows-Sample: Windows-Sample

What the project shows

  • Efficiently render large data sets on "slippy" map widgets with SharpMap
  • Add interaction to pick an item
  • Implementing SharpMap interfaces to render your custom data source
  • Sharing your map business-code between web and desktop applications

The projects

  • SharpMap.Win - Windows (Forms) sample
  • SharpMap.Web - Browser sample
  • SharpMap.WinThin - Windows sample that uses the middle ware from the web project
  • SharpMap.Print - Sample for creating static images
  • SharpMap.Common - Shared code

The basic technique

The basic idea is to compose (or "mesh-up") imagery and vector data on the client-side. "First-class" map widgets like Leaflet and OpenLayers (for browser applications) or PTV xServer.NET (for Microsoft Windows applications) support this. The partitioning is done both between "base-map" and "application-data", which is delivered from different services, as well as between different rendering-techniques, depending on the type of data and required responsiveness. There are three main categories of render-data:

  • Persistent data than can be rendered independent from the viewport. This is typically the case for polygons and lines (areas or road segments).
  • Persistent data that cannot be rendered in tiles. This is the case for objects that "bleed" outside tiles or are using a heuristic layout algorithm. Symbols and labels need this strategy.
  • Transient data, for example the currently selected item.

So the layering-stack when using PTV xMapServer as base-map looks as follows:

Architecture considerations

A crucial part for UI applications is the decision about the basic architecture. There are two categories of UI-applications:

  • 2-tier, where the client directly accesses the data inside the database using SQL. It could even be possible that the database is not hosted on an external server, but an embedded (MS Access, SQLite) database, or just a plain .csv file. In this case we speak of a 1-tier applicatin.
  • 3-tier, where the client is only a thin application that consumes web services. A middleware supplies the client with the data via HTTP (SOAP, REST) interfaces. Web-clients usually use this architecture, but it's also possible to build a thin Windows (Forms, WPF) client that doesn't access the database directly, but only via a web interface.

The difference is very important with aspect on rendering performance. The renderer reads the geometry and attribute data from the database. This requires a high bandwidth between renderer and database server. If the client doesn't have this high-bandwidth connection to the database it's recommended to use a middleware, so only the rendered images have to be transferred to the client.

ToDos

  • Add interaction to thin Windows-Client
  • Some dynamic filtering and styling
  • Better sample data sources
  • More docs

sharpmap.widgets's People

Contributors

oliverheilig avatar xserverinternet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.