diff --git a/geofield.formatters.inc b/geofield.formatters.inc index 24b26e9..a40e67a 100644 --- a/geofield.formatters.inc +++ b/geofield.formatters.inc @@ -397,7 +397,7 @@ function _geofield_openlayers_formatter($map_name, $items) { } $features[] = array( 'wkt' => $geometry->out('wkt'), - 'projection' => '4326', + 'projection' => 'EPSG:4326', ); } @@ -464,7 +464,7 @@ function _geofield_def_list_formatter_dl($info) { function _geofield_description_formatter($item, $settings) { geophp_load(); $geometry = geoPHP::load($item['geom']); - + if (!$geometry) return ''; // Single types diff --git a/geofield.openlayers.inc b/geofield.openlayers.inc index b1090a7..12ceaac 100644 --- a/geofield.openlayers.inc +++ b/geofield.openlayers.inc @@ -77,8 +77,8 @@ function geofield_openlayers_maps() { 'geofield_formatter' => 0, 'openlayers_geojson_picture_this' => 0, ), - 'projection' => '900913', - 'displayProjection' => '4326', + 'projection' => 'EPSG:900913', + 'displayProjection' => 'EPSG:4326', 'styles' => array( 'default' => 'default', 'select' => 'default', @@ -153,8 +153,8 @@ function geofield_openlayers_maps() { 'geofield_formatter' => 0, 'openlayers_geojson_picture_this' => 0, ), - 'projection' => '900913', - 'displayProjection' => '4326', + 'projection' => 'EPSG:900913', + 'displayProjection' => 'EPSG:4326', 'styles' => array( 'default' => 'default', 'select' => 'default', @@ -200,7 +200,7 @@ function geofield_openlayers_layers() { $layer->description = ''; $layer->data = array( 'layer_type' => 'openlayers_layer_type_raw', - 'projection' => array('900913'), + 'projection' => array('EPSG:900913'), 'features' => array() ); $layers[$layer->name] = $layer;