Transferring Multiscale Map Styles Using Generative Adversarial Networks

Yuhao Kang, Song Gao, Robert E. RothInternational Journal of Cartography 2019 · DOI

Authors: Yuhao Kang, Song Gao, and Robert Roth

Abstract

The advancement of the Artificial Intelligence (AI) technologies makes it possible to learn stylistic design criteria from existing maps or other visual art and transfer these styles to make new digital maps. In this paper, we propose a novel framework using AI for map style transfer applicable across multiple map scales. Specifically, we identify and transfer the stylistic elements from a target group of visual examples, including Google Maps, OpenStreetMap, and artistic paintings, to unstylized GIS vector data through two generative adversarial network (GAN) models. We then train a binary classifier based on a deep convolutional neural network to evaluate whether the transfer styled map images preserve the original map design characteristics. Our experiment results show that GANs have a great potential for multiscale map style transferring, but many challenges remain requiring future research.

Introduction

Creating a cohesive map style that remains legible across multiple zoom levels—from a single city block to an entire metropolitan area—is a massive undertaking. Traditionally, cartographers must manually define thousands of rules to determine how features like roads, buildings, and labels should change as the scale shifts. This process, known as multiscale generalization, requires significant expertise and time. This research explores whether Artificial Intelligence can learn these stylistic and structural rules simply by observing existing maps, potentially allowing for the instant generation of custom-styled maps for any region.

Methodology

The researchers developed a three-stage framework to automate map styling using Generative Adversarial Networks (GANs).

The proposed three-stage framework for map style transfer and evaluation.
  1. Data Preparation: Raw OpenStreetMap (OSM) vector data for Los Angeles and San Francisco was converted into "simple styled maps" (basic colored geometry) to serve as input.
  2. Style Transfer via GANs: Two types of conditional GANs were tested:
  3. Pix2Pix: A "paired" model requiring exact 1:1 matches between input (raw data) and target (e.g., a Google Maps tile).
  4. CycleGAN: An "unpaired" model that learns style from a general collection of images (like Claude Monet paintings) without needing direct map-to-map correspondence.
  5. Evaluation (IsMap Classifier): To objectively measure success, a binary classifier based on the GoogleNet/Inception-v3 architecture was trained to distinguish between "real maps" and "not maps."

Key Insights and Results

The experiment focused on Zoom Level 15 (zoomed out) and Zoom Level 18 (zoomed in). One of the most striking findings was that the GANs did not just change colors; they learned to "generalize." At smaller scales, the models learned to eliminate minor streets and thicken major arteries to maintain legibility—mimicking human cartographic decisions.

Comparison of map styles generated for the Madison area, demonstrating the transfer of visual variables.

Quantitatively, the CycleGAN model achieved an F1-score of 1.000 at Zoom Level 15, meaning the "IsMap" classifier could not distinguish the generated maps from real ones. At Zoom Level 18, it maintained a high F1-score of 0.950. The models successfully captured visual variables like line width, color hue, and building saturation, consistently applying target styles (such as Google’s signature white roads) to the raw input.

Limitations and Future Work

Despite these results, several hurdles remain:

  • Text Generation: GANs often produced blurry, illegible shapes where labels should be, suggesting that text might require a separate, non-generative system.
  • Topological Errors: Because the models operate on pixels rather than vectors, they occasionally "broke" geography, resulting in overlapping roads or disconnected intersections.
  • Color Sensitivity: Models tended to over-rely on common colors (like road grey), sometimes failing to replicate rarer features like specific park greens or markers.

The study concludes that while GANs are not yet ready to replace cartographers, they represent a powerful new tool for "GeoAI," capable of automating tedious design tasks and enabling creative, artistic cartography.

Summary updated

BibTeX
@article{kang2019transferring,
  author = {Yuhao Kang and Song Gao and Robert E. Roth},
  title = {{Transferring Multiscale Map Styles Using Generative Adversarial Networks}},
  journal = {International Journal of Cartography},
  year = {2019},
  doi = {10.1080/23729333.2019.1615729},
}
Figure