Module 2 › Lesson 6

Making maps in Web GIS

Table of Contents

Terms: discrete object view, continuous field view, vector, raster, symbology, user interface, projection, Web Mercator

Introduction

Maps communicate information in a visual hierarchy that makes important things more visible or identifiable. What is considered important depends on the purpose of the map. It is the job of the cartographer to determine how to “tell the story of the data”, a task that blends science and art in a balance of objectivity and subjectivity.

This lesson will cover basic concepts in representing reality with maps, and special considerations for creating maps on the web.

Cartography in GIS

Digital maps are a way to model reality. When real-world objects or phenomena are represented on a map, they generally fall into two categories:

Discrete object view vs. continuous field view Figure 1. Maps of the same location shown as a discrete object view (left), with discernable objects such as water bodies and roads, and a continuous field view (right), where the ground elevation is depicted as a continuous color ramp representing low elevation in green and higher elevations in red.

Either way, cartographers must decide how the map should visually represent the real world. Visual properties such as icons and colors chosen to represent layers on a map are the symbology. The symbology is often driven by the attributes of each feature in a layer. For example, in a global map of population density by country, countries with a higher population density could have a darker shade. In a map of earthquakes, a bullseye symbol could be used at each epicenter, with larger magnitude earthquakes given larger symbols. While data might be considered objective, symbology can introduce subjectivity and bias.

Cartographers in Web GIS can also decide how much users can interact with the map and change its appearance, because unlike conventional maps, web maps are a user interface with controls for toggling layers, changing the scale (zooming), manipulating data, and any other means of interacting with the application.

As the assignments in this course will demonstrate, building a web map is as much about building an interface as it is building the map itself.

Possibilities and constraints

There are certain considerations for creating maps on the web. Some could apply to GIS in general but are especially important for Web GIS, where users might be on a browser instead of GIS software, a mobile device instead of a PC, and a slow connection instead of broadband Internet. These factors might lead developers to offer separate apps for different devices.

Mobile and desktop versions of the same app Figure 2. The Johns Hopkins University coronavirus dashboard is offered as mobile and desktop versions.

Possibilities

Augmented reality GIS Figure 3. Augmented reality and Web GIS in practice for managing utilities and infrastructure in New Jersey. Source: Cartodyne/Esri

Location services on a mobile OS Figure 4. A message about enabling location services on a mobile device. Location services can turn the user’s current location into a data point on the map and change the map or app behavior depending on where the user is.

Constraints

Map performance Figure 5. This map of oil and gas wells contains more than 200,000 features displayed in an ArcGIS Feature Service. It took more than 20 seconds to load, downloaded more than 100 MB, and the browser is using over 2 GB of RAM for this tab alone. The map would be more performant if the cartographer had represented the data differently. For example, when the map is zoomed out to the state level, show the parishes as a choropleth map, colored based on wells per square mile, without showing the actual points. Then when the user zooms in close, show the points so that fewer are displayed on the screen simultaneously.

Some current constraints will be less of a concern in the future as Internet access and speeds improve globally.

Meanwhile, new opportunities and challenges will arise as technology changes. For example, maps are a thoroughly visual medium, so how will they evolve as visual click/touch interfaces give way to speech interfaces?

Building a Web GIS application

Going from data to web application involves a few steps in Web GIS if you want to offer your data as a web service. The following explanation is given based on the ArcGIS platform but it can pertain to other Web GIS setups as well.

  1. Let’s consider “features” the smallest building block in what will eventually become a Web GIS application. Features are the individual objects on a map representing things like rivers, parks, and campsites.
  2. Similar features are grouped together in a layer, so you might have a layer of rivers and another layer of campsites.
  3. A layer or sometimes multiple layers can be published as a web service to act as a package for delivering the layers over the web.
  4. The layers in the web service can be added to a map and combined with other layers, such as showing a campsite layer over a satellite image basemap.
  5. Finally, the map can be displayed as part of an application (website, mobile app, other)

Steps to go from a feature to an app Figure 6. Progression of geographic information, from a single feature to a full-fledged web application.

The way each step builds upon the last reminds me of nesting dolls, with each fitting inside the next to become something bigger.

Features fitting into layers etc. are analogous to nesting dolls Figure 7. Features » Layers » Web services » Web maps » Web applications: the components of a Web GIS application fit inside the next like nesting dolls.

Coordinate systems and projections

Coordinate systems are fundamental to GIS. Locations on Earth expressed as numeric coordinates allow for quantitative analysis of distance and spatial relationships.

A simple 2D coordinate system Figure 8. A simple coordinate system, similar in concept to the coordinate reference systems used in maps.

Where coordinate systems come into play in cartography is in choosing a projection. Projections are methods for transforming the 3D surface of a globe into a 2D plane for use in maps. The video below gives a nice overview of projections and the issues they can pose for cartographers.

In Web GIS, however, you are less likely to need to decide on a projection, as there is already a de facto standard for web maps: Web Mercator.

Web Mercator is the projection used by major web map providers.

Understanding projections can still be useful when working with data that will be imported into Web GIS software. Web Mercator coordinates use meters, not degrees latitude/longitude like WGS84 (the coordinate system used by GPS). Using data from a different coordinate system can have unexpected consequences when the data is published to Web GIS software.

Sometimes you can find such errors on web maps before they are fixed. If you navigate a web map to 0,0 where the Prime Meridian intersects the Equator off the western coast of Africa, occasionally you will find businesses, bike trails, and other user-generated content in the ocean, no doubt the result of a coordinate system mishap.

A Home Goods location in the ocean due to a coordinate system mishap Figure 10. A Home Goods location placed in the ocean on Google Maps where the Prime Meridian intersects the Equator, likely due to a coordinate system mishap.

Coordinate system mishap on OpenStreetMap Figure 11. A layer available on OpenStreetMap.org shows a location mistakenly put into the ocean.

Even though ArcGIS Online uses Web Mercator, you can still import data with latitude and longitude coordinates (WGS84 coordinate system) because ArcGIS Online will automatically project those coordinates for you into Web Mercator.

Summary

As you make web maps for the assignments in this course, remember the points from this lesson that you would need to consider in a real-world scenario.

And while you might not have to worry about using a projection other than Web Mercator, you can bet you have a coordinate system issue if you ever import data in Web GIS that ends up projected in the ocean. You can use a desktop GIS application to project your data to Web Mercator prior to importing to your Web GIS, or convert it to WGS84 if your Web GIS accepts latitude/longitude input.

Top
Back to Lessons