SparkDevNetwork / Rock

An open source CMS, Relationship Management System (RMS) and Church Management System (ChMS) all rolled into one.
http://www.rockrms.com
580 stars 353 forks source link

Google Map Shortcode Zoom Parameter #5874

Closed sheatipton closed 5 months ago

sheatipton commented 6 months ago

Description

When using the "Google Map" shortcode, I am unable to set a zoom level parameter when there are more than ONE markers

Actual Behavior

using the following lava code below on a page produces a gray screen:

{[ googlemap zoom:'10']}
    [[ marker location:'33.640705,-112.280198']][[ endmarker ]]
    [[ marker location:'33.52764, -112.262571']][[ endmarker ]]
    [[ marker location:'33.54764, -112.292571']][[ endmarker ]]
{[ endgooglemap ]}
Screenshot 2024-05-14 at 3 56 02 PM

Expected Behavior

modifying the lava so there is only ONE marker solves the issue

{[ googlemap zoom:'10']}
    [[ marker location:'33.640705,-112.280198']][[ endmarker ]]
{[ endgooglemap ]}
Screenshot 2024-05-14 at 4 02 44 PM

Steps to Reproduce

-Create a page and add the lava shortcode to a block -To replicate the issue, add a zoom parameter to a google map shortcode with multiple markers

Issue Confirmation

Rock Version

Rock McKinley 15.1 (1.15.1.1)

Client Culture Setting

en-US

chead4 commented 5 months ago

Fixed via migration (line 157).