Skip to content

Instantly share code, notes, and snippets.

hey hey

Mickael mickaelmonsieur

hey hey
Block or report user

Report or block mickaelmonsieur

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
wouterds / convert-mapstylejson-to-urlargs.php
Created Jan 27, 2015
Convert google maps style json to url arguments to use for google maps static images.
View convert-mapstylejson-to-urlargs.php
public function mapStylesUrlArgs($mapStyleJson)
$params = [];
foreach (json_decode($mapStyleJson, true) as $style) {
$styleString = '';
if (isset($style['stylers']) && count($style['stylers']) > 0) {
You can’t perform that action at this time.