2017 © Pedro Peláez
 

project geojson2svg

image

jmleroux/geojson2svg

  • Wednesday, February 14, 2018
  • by jmleroux
  • Repository
  • 1 Watchers
  • 1 Stars
  • 50 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 4 Versions
  • 39 % Grown

The README.md

GeoJSON to SVG

Build Status, (*1)

A simple PHP library to convert geojson file to svg file., (*2)

Rewrite from chrishadi/geojson2svg., (*3)

Usage

See examples/transform.php, (*4)

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, (*5)

Feature renderer options: * strokeWidth. * fillColor. * strokeColor., (*6)

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., (*7)

The Versions