farm_soil_nrcs.farm_map.inc in farmOS 7
Farm Map hooks implemented by the Farm Soil NRCS module.
File
modules/farm/farm_soil/farm_soil_nrcs/farm_soil_nrcs.farm_map.incView source
<?php
/**
* @file
* Farm Map hooks implemented by the Farm Soil NRCS module.
*/
/**
* Implements hook_farm_map_behaviors().
*/
function farm_soil_nrcs_farm_map_behaviors() {
return array(
'soil_survey' => array(
'js' => 'farmOS.map.behaviors.soil_survey.js',
),
);
}
/**
* Implements hook_farm_map_view().
*/
function farm_soil_nrcs_farm_map_view($name, $element) {
// Add a farmOS map behavior that provides the NRCS Soil Survey layer.
farm_map_add_behavior('soil_survey');
}
Functions
Name | Description |
---|---|
farm_soil_nrcs_farm_map_behaviors | Implements hook_farm_map_behaviors(). |
farm_soil_nrcs_farm_map_view | Implements hook_farm_map_view(). |