jmleroux / geojson2svg
Installs: 97
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 2
Open Issues: 2
Type:project
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: 2024-11-07 00:11:08 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.