Closed daltonrooney closed 1 year ago
This is fixed, and will be available in the next release. The styles
option for static maps should now behave as expected.
If you'd like to get the latest dev
version now, change your composer.json
file to say...
"doublesecretagency/craft-googlemaps": "dev-v4-dev"
... and then run composer update
.
Thanks for filing this issue! 🍺
This patch has been officially released in v4.3. 👍
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