Download the PHP package fedik/php-maptiles without Composer
On this page you can find all versions of the php package fedik/php-maptiles. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download fedik/php-maptiles
More information about fedik/php-maptiles
Files in fedik/php-maptiles
Download fedik/php-maptiles
More information about fedik/php-maptiles
Files in fedik/php-maptiles
Vendor fedik
Package php-maptiles
Short Description Simple Map Tiles Generator. Allow to make a Map Tiles with PHP and Imagick.
License GPL-2.0-or-later
Package php-maptiles
Short Description Simple Map Tiles Generator. Allow to make a Map Tiles with PHP and Imagick.
License GPL-2.0-or-later
Please rate this library. Is it a good library?
Informations about the package php-maptiles
PHP MapTiles, Simple Map Tiles Generator
Simple Map Tiles Generator allow to make a Map Tiles with PHP and Imagick. That allows to build a simple custom map. It does not include any geographical calculations.
Requirements
- PHP >= 5.3 version
- PHP Imagick extension >= 3.0 version
- A lot CPU time (for images with high resolution and for high zoom level)
- A lot free disc space
- Patience ;)
Usage example
Make custom map, based on my-image.jpg.
Generate a tiles:
Display the result with Leaflet.js
API
Options
tile_sizeA tile size (def: 256);store_structureA tile name, can contain/for splitzoom,x,yby folder (def:'%d/%d/%d');forceForce create new tile if it already exist (def:false);tmsUse TMS tile addressing, which is used in open-source projects like OpenLayers or TileCache (def:true);fill_colorColor for fill a free space if tile is not a square (def:white);zoom_minMinimum zoom level for make tiles (def:0);zoom_maxMaximum zoom level for make tiles (def:8);scaling_upZoom level when scaling up still allowed, when a base image have less size than need for a requested zoom level (def:0);formatImage format (def:jpeg);quality_jpegQuality for jpeg format (def:80);imagick_tmpTemporary folder for ImageMagick, useful if system /tmp folder have not enough free space (def: null);
Publick Methods
__construct($image_path, $options = array())Class constructor.setOptions($options)Set/change options.getOptions()Get options array.process($clean_up = false)Generate tiles, set$clean_up=trueto remove a base zoom images.prepareZoomBaseImages($min = null, $max = null)Prepare a base zoom images,$min- min zoom level,$max- max zoom level.removeZoomBaseImages($min = null, $max = null)Remove the base zoom images.tilesForZoom($zoom)Generate tiles for given$zoomlevel.
All versions of php-maptiles with dependencies
PHP Build Version
Package Version
No informations.
The package fedik/php-maptiles contains the following files
Loading the files please wait ...