static function to GeolocationItem:

Like this:

'lat_north_east' => (isset($values[1]) && is_numeric($values[1]) && $values[1] >= -90 && $values[1] <= 90) ? floatval($values[1]) : FALSE,

'lng_north_east' => (isset($values[2]) && is_numeric($values[2]) && $values[2] >= -180 && $values[2] <= 180) ? floatval($values[2]) : FALSE,

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ChristianAdamski created an issue. See original summary.

Eduardo Morales Alberti made their first commit to this issue’s fork.

eduardo morales alberti’s picture

Status: Active » Needs review

christianadamski’s picture

Status: Needs review » Closed (won't fix)

This is broken with any custom data (like custom map settings) as far as I can tell and I don't know how to fiy this.

christianadamski’s picture

Digging up the dead: AI convinced me, that this is an actual issue in v3 and that this is a valid solution. I'll go with the simpler solution offered in https://www.drupal.org/project/geolocation/issues/3257751#14

Thanks though!