Bienvenue sur PostGIS.fr

Bienvenue sur PostGIS.fr , le site de la communauté des utilisateurs francophones de PostGIS.

PostGIS ajoute le support d'objets géographique à la base de données PostgreSQL. En effet, PostGIS "spatialise" le serverur PostgreSQL, ce qui permet de l'utiliser comme une base de données SIG.

Maintenu à jour, en fonction de nos disponibilités et des diverses sorties des outils que nous testons, nous vous proposons l'ensemble de nos travaux publiés en langue française.

source: trunk/workshop-routing-foss4g/web/OpenLayers/lib/OpenLayers/Control/ZoomPanel.js @ 76

Revision 76, 1.8 KB checked in by djay, 12 years ago (diff)

Ajout du répertoire web

  • Property svn:executable set to *
Line 
1/* Copyright (c) 2006-2010 by OpenLayers Contributors (see authors.txt for
2 * full list of contributors). Published under the Clear BSD license. 
3 * See http://svn.openlayers.org/trunk/openlayers/license.txt for the
4 * full text of the license. */
5
6/**
7 * @requires OpenLayers/Control/Panel.js
8 * @requires OpenLayers/Control/ZoomIn.js
9 * @requires OpenLayers/Control/ZoomOut.js
10 * @requires OpenLayers/Control/ZoomToMaxExtent.js
11 */
12
13/**
14 * Class: OpenLayers.Control.ZoomPanel
15 * The ZoomPanel control is a compact collecton of 3 zoom controls: a
16 * <OpenLayers.Control.ZoomIn>, a <OpenLayers.Control.ZoomToMaxExtent>, and a
17 * <OpenLayers.Control.ZoomOut>. By default it is drawn in the upper left
18 * corner of the map.
19 *
20 * Note:
21 * If you wish to use this class with the default images and you want
22 *       it to look nice in ie6, you should add the following, conditionally
23 *       added css stylesheet to your HTML file:
24 *
25 * (code)
26 * <!--[if lte IE 6]>
27 *   <link rel="stylesheet" href="../theme/default/ie6-style.css" type="text/css" />
28 * <![endif]-->
29 * (end)
30 *
31 * Inherits from:
32 *  - <OpenLayers.Control.Panel>
33 */
34OpenLayers.Control.ZoomPanel = OpenLayers.Class(OpenLayers.Control.Panel, {
35
36    /**
37     * Constructor: OpenLayers.Control.ZoomPanel
38     * Add the three zooming controls.
39     *
40     * Parameters:
41     * options - {Object} An optional object whose properties will be used
42     *     to extend the control.
43     */
44    initialize: function(options) {
45        OpenLayers.Control.Panel.prototype.initialize.apply(this, [options]);
46        this.addControls([
47            new OpenLayers.Control.ZoomIn(),
48            new OpenLayers.Control.ZoomToMaxExtent(),
49            new OpenLayers.Control.ZoomOut()
50        ]);
51    },
52
53    CLASS_NAME: "OpenLayers.Control.ZoomPanel"
54});
Note: See TracBrowser for help on using the repository browser.