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
The problem is associated with the "googlemap" virtual field in oik-fields.
Function bw_fields_get_google_map() in includes\oik-fields-virtual-google-map.php
which calls bw_googlemap_v3() directly.
It's possible to produce the same problem by setting lat and long to blanks.
It's also possible to create a different error by setting the fields to non-numeric values.
e.g.
Uncaught ReferenceError: x is not defined
at initialize0
So, it would make sense to perform some validation of the lat and long values when setting the combined $latlng field.
Having changed the logic to use a function called bw_gmap_latlng() I've subsequently discovered that the bw_gmap_markers() function doesn't handle markers where the latitude and longitude are defined using the lat:lng method and the value of lat is an integer.
This test will pass for $marker set to "30:30"
Detected on anchorgolf.com the generated JavaScript produces the Uncaught SyntaxError in the following line generated to display a Google Map.
var latlng = new google.maps.LatLng(,);
Workaround
Enter values for the lat and long.
The text was updated successfully, but these errors were encountered: