stableversion-3.0
Last change
on this file since c43ea01 was
177a560,
checked in by José Gregorio Puentes <jpuentes@…>, 8 años ago
|
se agrego el directorio de modulos contribuidos de drupal
|
-
Propiedad mode establecida a
100644
|
File size:
1.3 KB
|
Línea | |
---|
1 | <?php |
---|
2 | |
---|
3 | /** |
---|
4 | * @file |
---|
5 | * This file contains preset implementations |
---|
6 | * |
---|
7 | * @ingroup openlayers |
---|
8 | */ |
---|
9 | |
---|
10 | /** |
---|
11 | * Preset Implementation |
---|
12 | * |
---|
13 | * Internal callback for openlayers preset implementation. |
---|
14 | * |
---|
15 | * @return |
---|
16 | * Array of presets |
---|
17 | */ |
---|
18 | function _openlayers_openlayers_presets() { |
---|
19 | // Create full preset array |
---|
20 | $default = new stdClass(); |
---|
21 | $default->api_version = 1; |
---|
22 | $default->name = 'default'; |
---|
23 | $default->title = t('Default Map'); |
---|
24 | $default->description = t('This is the default map preset that comes with the OpenLayers module.'); |
---|
25 | $default->data = array( |
---|
26 | 'projection' => '900913', |
---|
27 | 'width' => 'auto', |
---|
28 | 'height' => '400px', |
---|
29 | 'default_layer' => 'osm_mapnik', |
---|
30 | 'center' => array( |
---|
31 | 'initial' => array( |
---|
32 | 'centerpoint' => '0,0', |
---|
33 | 'zoom' => '2' |
---|
34 | ) |
---|
35 | ), |
---|
36 | 'displayProjection' => '4326', |
---|
37 | 'maxExtent' => openlayers_get_extent('4326'), |
---|
38 | 'behaviors' => array( |
---|
39 | 'openlayers_behavior_panzoombar' => array(), |
---|
40 | 'openlayers_behavior_layerswitcher' => array(), |
---|
41 | 'openlayers_behavior_attribution' => array(), |
---|
42 | 'openlayers_behavior_keyboarddefaults' => array(), |
---|
43 | 'openlayers_behavior_navigation' => array(), |
---|
44 | ), |
---|
45 | 'layers' => array( |
---|
46 | 'osm_mapnik' => 'osm_mapnik', |
---|
47 | ) |
---|
48 | ); |
---|
49 | return array('default' => $default); |
---|
50 | } |
---|
Nota: Vea
TracBrowser
para ayuda de uso del navegador del repositorio.