Skip to content

Uncaught SyntaxError: Unexpected token , in Google map when lat / long is null #25

Description

@bobbingwide

When the "googlemap" virtual field is displayed with lat or long set to null then an Uncaught SyntaxError message is produced in the browser.

This was originally reported as bobbingwide/oik/issues/44

Proposed solution

Only call bw_googlemap_v3() if both $lat and $long are numeric.
See also #2

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions