/[drupal]/contributions/modules/carto/INSTALL.txt
ViewVC logotype

Contents of /contributions/modules/carto/INSTALL.txt

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (show annotations) (download)
Fri Sep 29 14:34:22 2006 UTC (3 years, 1 month ago) by openwereld
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +4 -1 lines
File MIME type: text/plain
First updates for Drupal 5.x api.
1 INSTALLATION OF CARTO MODULE
2
3 step 1
4
5 Install the necessary software: smarty (from http://smarty.php.net) and
6 mappingwidgets (from http://mappingwidgets.sourceforge.net).
7
8 step 2
9
10 Install the carto module in ../modules/carto/.
11
12 step 3
13
14 Enable the carto module in drupal.
15
16 step 4
17
18 Configure the carto module in admin/settings/carto. Specify the correct
19 paths for the mappingwidgets and smarty packages. If mappingwidgets installed
20 only for use with carto, install it in modules/carto/lib/mappingwidgets.
21
22 Copy config.inc.dist to config.inc and set the correct file paths for
23 your system.
24
25 step 5
26
27 Add new input format in the 'admin/settings/filters' page:
28 call it e.g. 'Inline mappingwidgets' and configure it to use inline
29 mappingwidgets. It is best to arrange that the HTML filter is also enabled for
30 this input format and that it is used before the carto filter (Rearrange).
31 Enable the input format for authenticated users.
32
33 step 6
34
35 If desired, enable the overview and/or legend block to show in the left
36 (preferred) or right column.
37
38 step 7
39
40 Test everything by making a node using the new filter.
41 For the body use something like the following:
42
43 {carto-filter}
44 {mappingwidget type="ZoomIn" factor=0.5 target="next"
45 normalimage="buttons/button_zoomin_1.png"
46 hoverimage="buttons/button_zoomin_2.png"
47 selectedimage="buttons/button_zoomin_3.png"
48 group="navigation"}
49 {mappingwidget type="ZoomOut" factor=0.5 target="next"
50 group="navigation"}
51 {mappingwidget type="Move" group="navigation" target="next"}
52 {mappingwidget type="Query" group="navigation" target="next"}
53 {mappingwidget type="Ruler" group="navigation" target="next"}
54
55 {mappingwidget type="ZoomFull" target="next"}
56 {mappingwidget type="ZoomFirst" target="next"}
57 {mappingwidget type="ZoomPrevious" target="next"}
58 {mappingwidget type="ZoomNext" target="next"}
59 {mappingwidget type="ZoomLast" target="next"}
60 {/carto-filter}
61
62 {carto-filter}
63 {mappingwidget type="SimpleMap" width="480" height="240"
64 service="http://www2.demis.nl/wms/wms.asp?wms=WorldMap"
65 layers="Bathymetry,Topography,Borders,Ocean%20features,Hillshading,Waterbodies,Rivers,Streams,Railroads,Highways,Builtup areas"
66 query_layers="Bathymetry,Topography,Borders,Ocean%20features,Waterbodies,Rivers,Streams,Railroads,Highways,Builtup areas"
67 extent="-180,-90,180,90" srs="epsg:4326"
68 format="image/png"
69 }
70 {/carto-filter}
71
72 Note that the legend block only functions with a UMN Mapserver thus not
73 with the one of this example.
74

  ViewVC Help
Powered by ViewVC 1.1.2