Custom Map Server

Building a Custom Map Server on Node.js - Tutorial

Custom Map Server on Node.js Tutorial

Displaying a Map

Geographic Information Systems (GIS) have become ubiquitous in modern web applications and mobile apps.
Most implementations employ existing map services, like Google Maps, to display their own overlay on top of provided base maps. The typical example is a store locator showing all store locations of fashion brand on a map.

You should use such services whenever possible. However, there are some scenarios where they may fall short of your requirements. In that case you can build your own custom map server.

What is a Map Server?

A Map Server is simply a web server (http/https). But instead of severing html, it serves the contents of a map.
This content can either be map imagery or vector data.

A Map Server usually provides different URLs for different layers of your map. It can be configured to combine different types of data sources into those layers.

The User Interface (UI) takes the layers provided by the Map Server and combines them into a layered display of your map.

For example: You are creating a map of your school's campus. You have already acquired a set of high-resolution satellite. And you have the database with the coordinates and names of points of interest on your campus. Now you can create the map server to:

  1. Serve the satellite imagery in a format that is ready to be displayed as a base layer on your map.
  2. Serve the points of interest in a format that that can be displayed on top of your base layer and add user click interactions.
Map server basic architecture

Custom Map Features

  • Custom Data & Styles

    The data provided by GIS services is rich - both in depth of data and styling. However, if you want to display and style your own GIS data, the services limit you to overlays.
    While the services allow you to change colors and styles on their data, this often falls short of your UX requirements to direct the user's focus to a particular set of GIS data.

    For example: You are building a map for the campus of a school. The exact spatial layout of the school buildings is your private knowledge - so is the use and occupation of all facilities. A custom map server lets you integrate and display all your private info. You can apply your own map styles and colors so that the map display does not break the design of the displaying website.

  • Private Data

    The data you want to display may be privileged to an authenticated audience. If your map server runs on Node.js you can introduce authentication and only deliver your GIS data to those use who are authenticated. You can combine your data with the rich open source data to create a complete map.

    For example: You may want to limit the display of your school campus map to authenticated students and faculty members.

  • Live Tracking

    Most services limit the use of live tracking data. As this is a limitation on the use of the map, which may break your business case. A custom map server allows you to display your live tracking content without limitations.
    For example: You can build a custom map server to show the location of delivery drivers for your authenticated customers.

  • Offline Deployment

    Public map services are hosted on the internet. Your requirements may hinder access to the services, because your map is deployed in a disconnected scenario or on your organization's intranet. A custom map server gives you the flexibility to display GIS content free of any internet connection.