Remove Openlayers 2.x stuff.

This commit is contained in:
Michael Stenta 2015-07-22 21:09:54 -04:00
parent 0c2ca61ab7
commit 35d6922c6e
4 changed files with 0 additions and 130 deletions

View File

@ -8,9 +8,6 @@
* Implements hook_ctools_plugin_api().
*/
function farm_soil_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "openlayers" && $api == "openlayers_layers") {
return array("version" => "1");
}
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}

View File

@ -7,9 +7,7 @@ dependencies[] = features
dependencies[] = openlayers
dependencies[] = strongarm
dependencies[] = taxonomy
features[ctools][] = openlayers:openlayers_layers:1
features[ctools][] = strongarm:strongarm:1
features[features_api][] = api:2
features[openlayers_layers][] = farm_soil_nrcs
features[taxonomy][] = farm_soil_types
features[variable][] = pathauto_taxonomy_term_farm_soil_types_pattern

View File

@ -5,32 +5,3 @@
*/
include_once 'farm_soil.features.inc';
/**
* Implements hook_openlayers_map_preprocess_alter().
*/
function farm_soil_openlayers_map_preprocess_alter(&$map = array()) {
// Add the NRCS Soil Survey layer to farm maps.
$maps = array(
'farm_map_area',
'farm_map_areas',
'farm_map_geofield',
);
// Add the farm_soil_nrcs layer to each of the maps above.
if (!empty($map['map_name']) && in_array($map['map_name'], $maps)) {
// Add the farm_soil_nrcs layer.
$map['layers'] += array('farm_soil_nrcs' => 'farm_soil_nrcs');
// Don't activate the layer by default.
$map['layer_activated'] += array('farm_soil_nrcs' => 0);
// Show the layer in the switcher.
$map['layer_switcher'] += array('farm_soil_nrcs' => 'farm_soil_nrcs');
// Set the layer weight so that it is on the bottom.
$map['layer_weight'] += array('farm_soil_nrcs' => 100);
}
}

View File

@ -1,96 +0,0 @@
<?php
/**
* @file
* farm_soil.openlayers_layers.inc
*/
/**
* Implements hook_openlayers_layers().
*/
function farm_soil_openlayers_layers() {
$export = array();
$openlayers_layers = new stdClass();
$openlayers_layers->disabled = FALSE; /* Edit this to true to make a default openlayers_layers disabled initially */
$openlayers_layers->api_version = 1;
$openlayers_layers->name = 'farm_soil_nrcs';
$openlayers_layers->title = 'NRCS Soil Survey';
$openlayers_layers->description = 'NRCS Soil Survey layer.';
$openlayers_layers->data = array(
'base_url' => 'http://sdmdataaccess.nrcs.usda.gov/Spatial/SDM.wms',
'params' => array(
'buffer' => '2',
'ratio' => '1.5',
'singleTile' => 0,
),
'options' => array(
'TRANSPARENT' => 'true',
'exceptions' => 'application/vnd.ogc.se_inimage',
'format' => 'image/png',
'layers' => array(
0 => 'MapunitPoly',
),
'styles' => '',
),
'projection' => array(
0 => 'EPSG:3857',
1 => 'EPSG:4326',
),
'isBaseLayer' => 0,
'layer_type' => 'openlayers_layer_type_wms',
'layer_handler' => 'wms',
'transitionEffect' => 'resize',
'weight' => 0,
'serverResolutions' => array(
0 => 156543.03390000001,
1 => 78271.516950000005,
2 => 39135.758475000002,
3 => 19567.879237500001,
4 => 9783.9396187500006,
5 => 4891.9698093750003,
6 => 2445.9849046875001,
7 => 1222.9924523437501,
8 => 611.49622617187504,
9 => 305.74811308593752,
10 => 152.87405654296876,
11 => 76.43702827148438,
12 => 38.21851413574219,
13 => 19.109257067871095,
14 => 9.5546285339355475,
15 => 4.7773142669677737,
16 => 2.3886571334838869,
17 => 1.1943285667419434,
18 => 0.59716428337097172,
19 => 0.29858214169740677,
20 => 0.14929107084870338,
21 => 0.074645535424351692,
),
'resolutions' => array(
0 => 156543.03390000001,
1 => 78271.516950000005,
2 => 39135.758475000002,
3 => 19567.879237500001,
4 => 9783.9396187500006,
5 => 4891.9698093750003,
6 => 2445.9849046875001,
7 => 1222.9924523437501,
8 => 611.49622617187504,
9 => 305.74811308593752,
10 => 152.87405654296876,
11 => 76.43702827148438,
12 => 38.21851413574219,
13 => 19.109257067871095,
14 => 9.5546285339355475,
15 => 4.7773142669677737,
16 => 2.3886571334838869,
17 => 1.1943285667419434,
18 => 0.59716428337097172,
19 => 0.29858214169740677,
20 => 0.14929107084870338,
21 => 0.074645535424351692,
),
);
$export['farm_soil_nrcs'] = $openlayers_layers;
return $export;
}