Skip to content
Permalink
Browse files

Initial commit of Farmier Maps - provides a default OpenLayers map an…

…d configuration.
  • Loading branch information...
mstenta committed Feb 3, 2013
0 parents commit 53ca3e8753d7eca390338c5563de454c1e3e5a66
Showing with 173 additions and 0 deletions.
  1. +19 −0 farmier_maps.features.inc
  2. +14 −0 farmier_maps.info
  3. +7 −0 farmier_maps.module
  4. +98 −0 farmier_maps.openlayers_maps.inc
  5. +35 −0 farmier_maps.strongarm.inc
@@ -0,0 +1,19 @@
<?php
/**
* @file
* farmier_maps.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function farmier_maps_ctools_plugin_api() {
list($module, $api) = func_get_args();
if ($module == "openlayers" && $api == "openlayers_maps") {
return array("version" => "1");
}
list($module, $api) = func_get_args();
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
@@ -0,0 +1,14 @@
name = Farmier Maps
description = Provides features for displaying and working with maps.
core = 7.x
package = Farmier
dependencies[] = ctools
dependencies[] = openlayers
dependencies[] = strongarm
features[ctools][] = openlayers:openlayers_maps:1
features[ctools][] = strongarm:strongarm:1
features[features_api][] = api:1
features[openlayers_maps][] = farmier
features[variable][] = openlayers_default_map
features[variable][] = openlayers_source
features[variable][] = openlayers_ui_preview_map
@@ -0,0 +1,7 @@
<?php
/**
* @file
* Code for the Farmier Maps feature.
*/

include_once 'farmier_maps.features.inc';
@@ -0,0 +1,98 @@
<?php
/**
* @file
* farmier_maps.openlayers_maps.inc
*/
/**
* Implements hook_openlayers_maps().
*/
function farmier_maps_openlayers_maps() {
$export = array();
$openlayers_maps = new stdClass();
$openlayers_maps->disabled = FALSE; /* Edit this to true to make a default openlayers_maps disabled initially */
$openlayers_maps->api_version = 1;
$openlayers_maps->name = 'farmier';
$openlayers_maps->title = 'Farmier Map';
$openlayers_maps->description = 'Maps used in Farmier applications.';
$openlayers_maps->data = array(
'width' => 'auto',
'height' => '400px',
'image_path' => 'sites/all/modules/openlayers/themes/default_dark/img/',
'css_path' => 'sites/all/modules/openlayers/themes/default_dark/style.css',
'proxy_host' => '',
'hide_empty_map' => array(),
'center' => array(
'initial' => array(
'centerpoint' => '-75.14, 39.95',
'zoom' => '12',
),
'restrict' => array(
'restrictextent' => 0,
'restrictedExtent' => '',
),
),
'behaviors' => array(
'openlayers_behavior_fullscreen' => array(
'activated' => 0,
),
'openlayers_behavior_keyboarddefaults' => array(),
'openlayers_behavior_dragpan' => array(),
'openlayers_behavior_navigation' => array(
'zoomWheelEnabled' => 1,
'zoomBoxEnabled' => 1,
'documentDrag' => 0,
),
'openlayers_behavior_panzoombar' => array(
'zoomWorldIcon' => 0,
'panIcons' => 1,
),
'openlayers_behavior_scaleline' => array(),
'openlayers_behavior_zoomtolayer' => array(
'zoomtolayer' => array(
'geofield_formatter' => 'geofield_formatter',
'google_satellite' => 0,
'osm_mapnik' => 0,
),
'point_zoom_level' => '16',
'zoomtolayer_scale' => '1',
),
),
'default_layer' => 'osm_mapnik',
'layers' => array(
'osm_mapnik' => 'osm_mapnik',
'geofield_formatter' => 'geofield_formatter',
),
'layer_weight' => array(
'geofield_formatter' => '0',
'openlayers_geojson_picture_this' => '0',
),
'layer_styles' => array(
'openlayers_geojson_picture_this' => '0',
'geofield_formatter' => '0',
),
'layer_styles_select' => array(
'openlayers_geojson_picture_this' => '0',
'geofield_formatter' => '0',
),
'layer_activated' => array(
'geofield_formatter' => 'geofield_formatter',
'openlayers_geojson_picture_this' => 0,
),
'layer_switcher' => array(
'geofield_formatter' => 'geofield_formatter',
'openlayers_geojson_picture_this' => 0,
),
'projection' => '900913',
'displayProjection' => '4326',
'styles' => array(
'default' => 'default',
'select' => 'default_select',
'temporary' => 'default',
),
);
$export['farmier'] = $openlayers_maps;
return $export;
}
@@ -0,0 +1,35 @@
<?php
/**
* @file
* farmier_maps.strongarm.inc
*/
/**
* Implements hook_strongarm().
*/
function farmier_maps_strongarm() {
$export = array();
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'openlayers_default_map';
$strongarm->value = 'farmier';
$export['openlayers_default_map'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'openlayers_source';
$strongarm->value = 'http://openlayers.org/api/2.12/OpenLayers.js';
$export['openlayers_source'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
$strongarm->name = 'openlayers_ui_preview_map';
$strongarm->value = 0;
$export['openlayers_ui_preview_map'] = $strongarm;
return $export;
}

0 comments on commit 53ca3e8

Please sign in to comment.
You can’t perform that action at this time.