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

An example class to convert encoded strings to SVG for sample viewing.
Inheritance: extends Polyline
Afficher le fichier Open project: emcconville/google-map-polyline-encoding-tool

Méthodes publiques

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

Private Methods

Méthode 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 méthode

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