FMTC Docs
Project Links💝 Support Me
v9
v9
  • flutter_map_tile_caching
  • ❔Is FMTC Right For Me?
  • 💝Supporters
  • 📃(Proprietary) Licensing
  • 🚀Get Started
    • Quickstart
    • Installation
    • Example Application
    • v8 -> v9 Migration
    • Full API Reference
  • 🌐General
    • Initialisation
    • Backends
    • Error Handling
    • Tips
  • 📂Stores & Roots
    • Introduction
    • Stores
      • Management
      • Statistics
      • Metadata
    • Roots
      • Statistics
      • Recovery
    • flutter_map Integration
  • 📲Bulk Downloading
    • Introduction
    • 1️⃣Create A Region
    • 2️⃣Prepare For Downloading
    • 3️⃣Start Download
    • Control Downloads
    • Testing Tile Server
  • 🗃️External
    • Introduction
    • Exporting
    • Importing
  • flutter_map Docs
Powered by GitBook

© Luka Stillingfleet (JaffaKetchup)

On this page

Was this helpful?

Export as PDF
  1. Bulk Downloading

Testing Tile Server

PreviousControl DownloadsNextIntroduction

Last updated 1 year ago

Was this helpful?

A miniature tile server, intended to test and calibrate FMTC, has been included in the project.

Avoid making too many costly and slow requests to your chosen tile server during development by using this miniature tile server!

For internal testing and development purposes, it also doubles down as a handy way to test your application without making too many costly and slow requests to your chosen tile server. When in use with the example application, it can handle over 2000 tiles/second.

It is a very simple web HTTP server written in Dart, that responds to all* requests with a tile. There is a theoretically 90% chance that this tile will be a specific land tile, and a 10% chance that it will be a sea tile - designed to test the sea tile skipping functionality. There are only these two tiles - it is not a full tile server.

To use this tile server:

The tile server is hardcoded to use standard HTTP port 7070 to serve content, which is usually free. Other programs must not be using this port.

  1. Download/compile & start the tile server (no permanent installation required)

  2. Use the following URL to connect to it

    • From the local device: http://localhost:7070/{z}/{x}/{y}.png

  3. Control the tile server using keyboard key presses in the console window

    • q: Release port 7070 and quit the executable

    • UP arrow: Increase the artificial delay between request and response by 2ms

    • DOWN arrow: Decrease the artificial delay between request and response by 2ms

On Windows or Linux Download a copy of the latest '<platform>-ts' artifact from GitHub Actions, and run the executable inside:

On other platforms Clone the to your device, then run '/tile_server/bin/tile_server.dart' manually

From the same network (on another device): http://<your-local-ip>:7070/{z}/{x}/{y}.png To find your local IP address, follow the

📲
https://nightly.link/JaffaKetchup/flutter_map_tile_caching/workflows/main/main
FMTC GitHub repository
instructions for your OS here
the Land Tile 90% chance
the Sea Tile 10% chance