So I have a front-end form which has a Google Map element. I generally use Snazzymaps to create a JSON array of mapStyles that get applied to my Google Maps.
However I’m not sure how to apply this to a front-end form? I’d essentially need to get the config of the rendered map, and then add the styles object and re-apply those settings?
Not sure if it helps, but the
styles object is set at the same level/location as the
center values in the map’s options.
And on a similar topic, being able to update the marker icon used etc would be useful….
So all-in-all, some clues on how to edit the map options as a whole, for the front-end form.