PHP Class EncodedToSVG, google-map-polyline-encoding-tool

An example class to convert encoded strings to SVG for sample viewing.
Inheritance: extends Polyline
显示文件 Open project: emcconville/google-map-polyline-encoding-tool

Public Methods

Method Description
decodeToSVG ( string $encoded ) : string Decode string and generate a full SVG document.

Private Methods

Method Description
_generateSVG ( string $pathData, string $viewBox ) : string Turn path & MBR into a valid SVG string
_shiftPoint ( &$points ) : array Shift point tuple from start of list.

Method Details

decodeToSVG() public static method

Decode string and generate a full SVG document.
public static decodeToSVG ( string $encoded ) : string
$encoded string - Encoded polyline
return string - SVG document