farhanwazir / laravelgooglemaps

Laravel Google Maps Package
MIT License
152 stars 112 forks source link

$config['styles'] returns error #31

Closed entoniperez closed 5 years ago

entoniperez commented 5 years ago

I defined styles in my Controller in this way, following Google Maps documentation:

$estils = '{
    "featureType": "poi.business",
    "stylers": {"visibility": "off"}
}';
$config['styles'] = json_decode($estils, true);

But it returns an error: "Illegal string offset 'definition'".

uvnyb

farhanwazir commented 5 years ago

Style is not any option. Handle styling externally.