diff --git a/src/Plugin/migrate/process/GeofieldLatLon.php b/src/Plugin/migrate/process/GeofieldLatLon.php index 69d4978..db67746 100644 --- a/src/Plugin/migrate/process/GeofieldLatLon.php +++ b/src/Plugin/migrate/process/GeofieldLatLon.php @@ -35,7 +35,17 @@ class GeofieldLatLon extends ProcessPluginBase { return NULL; } - $lonlat = \Drupal::service('geofield.wkt_generator')->WktBuildPoint(array($lon, $lat)); + $lonlat = array( + 'value' => \Drupal::service('geofield.wkt_generator')->WktBuildPoint(array($lon, $lat)), + 'lon' => $value['lon'], + 'lat' => $value['lat'], + 'left' => $value['left'], + 'right' => $value['right'], + 'top' => $value['top'], + 'bottom' => $value['bottom'], + 'geo_type' => $value['geo_type'], + 'geohash' => $value['geohash'], + ); return $lonlat; }