Download the PHP package mapsight/tile-proxy without Composer
On this page you can find all versions of the php package mapsight/tile-proxy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mapsight/tile-proxy
More information about mapsight/tile-proxy
Files in mapsight/tile-proxy
Package tile-proxy
Short Description Simple tile proxy
License proprietary
Homepage https://github.com/open-mapsight/mapsight-tile-proxy
Informations about the package tile-proxy
Tile proxy
Tile proxy is a PHP-based server for processing and caching tiles.
Usage
You can initialize the proxy by providing a configuration array or by pointing to a JSONC (JSON with comments) configuration file.
Initialization
Using JSONC Configuration
Using Array Configuration
Configuration
The configuration defines the behavior of the proxy.
cacheServerPath: Base directory for caching tiles.ops: A list of operations to perform on the tiles.debug: (Optional) If set totrue, outputs exceptions in the browser.prefixArgName: (Optional) Name of the GET parameter to use for prefixing (e.g., to support different map styles).allowedPrefixes: (Optional) List of allowed values for the prefix argument.
Operation Pipeline (Chaining)
Operations are chained sequentially as defined in the ops array. The first operation must be the src operation, which defines the source URL(s).
Available Operations
src: Fetches the tile from the definedurls. Supports{z},{x},{y}, and{prefix}placeholders.colorFilter: Applies color filters. Supported filters:reducedSaturation,muted,culture.imgOpt: Optimizes the image using image optimizers.merge: Merges the current tile with another set of operations.
Examples
Layering Tiles
You can layer tiles by using the merge operation to overlay another tile set on top of the base map. If the overlay request fails (e.g., returns a 404), the merge operation is skipped and the base tile is returned.
Development
Testing
To run the tests, use:
Or run PHPUnit directly:
All versions of tile-proxy with dependencies
ext-json Version *
ext-imagick Version *
php Version ^8.2.0
spatie/image-optimizer Version ^1.8.1
symfony/polyfill-php83 Version ^1.37.0
symfony/polyfill-php84 Version ^1.37.0
symfony/polyfill-php85 Version ^1.37.0