jmleroux / geojson2svg
v1.0.0-beta.2
2018-02-14 08:21 UTC
Requires
- php: >=5.6
- emcconville/point-reduction-algorithms: ~1.1
- phayes/geophp: ~1.2
- symfony/options-resolver: @stable
Requires (Dev)
- friendsofphp/php-cs-fixer: @stable
- gregoiredavid/france-geojson: @stable
This package is auto-updated.
Last update: 2026-03-07 03:13:15 UTC
README
A simple PHP library to convert geojson file to svg file.
Rewrite from chrishadi/geojson2svg.
Usage
See examples/transform.php
Parameters
Converter options:
- canvasWidth
- canvasHeight
- top - defines top offset from the canvas (0,0) point
- left - defines left offset from the canvas (0,0) point
Feature renderer options:
- strokeWidth.
- fillColor.
- strokeColor.
Text renderer options:
- minXYPixel - minimum width or height of the polygon in pixel for the label to be drawn. If a polygon has width or height less than this value, label won't be drawn over it.
- fontSize - defines the font size for the label.
- lineSpacing - defines the line spacing of the label if it spans multiple lines.