Skip to content
Pinter Computing

Knowledge Base for IT Professionals, Teachers, and Astronauts

Pinter Computing

Knowledge Base for IT Professionals, Teachers, and Astronauts

  • Home
  • Programming
  • DevOps
  • Project Management
  • Software and Hardware
  • Miscellaneous
  • Egyebek
  • About
  • Experience
  • Education
  • Contact
  • Home
  • Programming
  • DevOps
  • Project Management
  • Software and Hardware
  • Miscellaneous
  • Egyebek
  • About
  • Experience
  • Education
  • Contact
Close

Search

Knowledge Base

Host the Cities: Skylines map generator locally

By Laszlo Pinter
May 2, 2024 3 Min Read
3

There are times when the Cities: Skylines Map Generator at https://heightmap.skydark.pl is not available. The free MapBox token expires because of the number of requests it serves.

We can host the site ourselves on our workstation and use it any time.

Install XAMPP

XAMPP is a free web server created by Apache Friends.

  • Download the installer for your workstation’s operating system at https://www.apachefriends.org/download.html
  • Install the application. As the popup will warn you, do not install it in the Program Files directory, as Windows restricts the access there.

Download the Cities: Skylines Map Generator application

The source code of the application is available on GitHub.

  • With your web browser navigate to https://github.com/sysoppl/Cities-Skylines-heightmap-generator
  • Click the Code button and select Download Zip
  • Extract the Zip archive

Place the application in the XAMPP directory

XAMPP contains the Apache web server which can host our JavaScript web application.

  • Create a directory called map in the htdocs folder of XAMPP. If you installed XAMPP to the default location, it is at C:\xampp\htdocs
  • Move the images and src directories of the map generator application into the map folder

Start XMAPP

  • Start the XAMPP Control Panel from the Start Menu
  • Start the Apache web server
  • Open your web browser and navigate to http://localhost/map/src/

Changing the MapBox access token

If the MapBox access token expires

  • Create a free access token for yourself at https://www.mapbox.com/
  • Update the value of mapboxgl.accessToken in the src/app.js file in line 47

To host the app from another directory

With the default configuration, XAMPP is looking for the web application in the htdocs directory within the XAMPP installation folder.

If you want to keep the Map Generator in another directory and host it from there with XAMPP:

  • Open the XAMPP control panel
  • Stop the Apache server
  • Click the Config button and select Apache (httpd.conf)
  • Place the project location into the DocumentRoot and Directory lines
  • Start the Apache server
  • Open your web browser and navigate to http://localhost/src/
Author

Laszlo Pinter

Follow Me
Other Articles
Previous

Create a high resolution overlay image for Cities: Skylines II

Next

Generating height maps with justgeektechs.com

3 Comments
  1. Chris says:
    September 15, 2024 at 2:54 pm

    This has been fabulous. Thank you for your work.

    I made several maps a few months ago and only recently started using it again. But, now I have an issue. The last picture in your article shows the menu off to the left hand side. My installation has the black menu background on the left, but no icons.

    I tried three different browsers – no joy.
    I restarted Apache – no joy.
    I stopped Apache, launched XAMPP as Administrator, restarted Apache – no joy.
    I downloaded the generator code again and re-entered my Mapbox Key – no joy.
    I tried my generic public Mapbox key – no joy.
    I uninstalled XAMPP and reinstalled it – no joy.

    Any help would be greatly appreciated.

    Thanks again!
    Chris

    Reply
    1. Laszlo Pinter says:
      September 28, 2024 at 12:23 am

      Hi Chris,

      The https://heightmap.skydark.pl/ page has been updated, you need to create a free MapBox token and enter it on the Information page.

      Reply
  2. Richard Phillips says:
    September 29, 2024 at 5:07 pm

    SO I have gone 6 ways to sunday to get this blasted heightmap program to work, but all I get is a blank screen no matter WHAT I do… it’s just a grey empty screen with the tool sidebar. Nothing I do can get the map itself to show up on the screen.

    I made a fricken Mapbox APi key, installed XAMPP and everything but NOTHING WORKS

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

Last Changes

  • Japan travel tips June 22, 2026
  • Argument of type '(number | null)[]' is not assignable to parameter of type '(err: Error, result: QueryResult) => void' June 20, 2026
  • Cities: Skylines II Developer Mode June 20, 2026
  • How to stop the rain and snow in Cities: Skylines II June 20, 2026
  • 'CSII_MANAGEDPATH' has incorrect path(s) when building Cities: Skylines II mod June 20, 2026

Tags

.NET .NETcore 3Dprinting ASP.NET Core AutodeskInventor AWS C# Chef cloud DevOps Docker EntityFramework Games Git Go iOS iPad iPhone iPod Java Kubernetes Linux MacOSX MSSQL MVC Node.js Packer PowerShell Python RDS RightScale Ruby security Splunk TeamCity Terraform TestKitchen Tomcat Ubuntu Vagrant VirtualBox VisualStudio Windows WordPress Xcode

Recent Comments

  • Zengei László on MyHeritage családfa exportálása és küldése emailben
  • Raúl Castillo on DynDns update error
  • MICHAEL on Windows Media Player 12 cannot find the album information
  • Nargis on Configure Epson ET-3850 scanning on Windows 11
  • Venczelné Zemen Erika on Delta S2302 termosztát programozása

–

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright 2026 — Pinter Computing. All rights reserved.