You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to apply some map styles in a PHP implementation & seem to be missing something. I first tried converting the style object to PHP array syntax like so:
Which results in a PHP Array to string conversion error in doublesecretagency/craft-googlemaps/src/models/StaticMap.php at line 235. So I tried using json_decode with the JSON that I got from Google like this:
I'm trying to apply some map styles in a PHP implementation & seem to be missing something. I first tried converting the style object to PHP array syntax like so:
Which results in a PHP
Array to string conversion
error indoublesecretagency/craft-googlemaps/src/models/StaticMap.php
at line 235. So I tried using json_decode with the JSON that I got from Google like this:But got the same error. Is there an example of a working style config in PHP I could reference? Thanks so much!
Google Maps plugin version 2.5.2
Craft CMS version 4.3.1
The text was updated successfully, but these errors were encountered: