NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

root/Chameleon/trunk/Chameleon/MapImageStatic/MapImageStatic.widget.php

Revision 13 (checked in by jcleary, 17 years ago)

Latest Chameleon code checkout from previous repository

Line 
1 <?php
2 /**
3  * Base Widget class
4  *
5  * @project     CWC2
6  * @revision    $Id: MapImageStatic.widget.php,v 1.3 2004/10/14 18:19:17 pspencer Exp $
7  * @purpose     Base Widget class
8  * @author      DM Solutions Group (assefa@dmsolutions.ca)
9  * @copyright
10  * <b>Copyright (c) 2002, DM Solutions Group Inc.</b>
11  * Permission is hereby granted, free of charge, to any person obtaining a
12  * copy of this software and associated documentation files (the "Software"),
13  * to deal in the Software without restriction, including without limitation
14  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
15  * and/or sell copies of the Software, and to permit persons to whom the
16  * Software is furnished to do so, subject to the following conditions:
17  *
18  * The above copyright notice and this permission notice shall be included
19  * in all copies or substantial portions of the Software.
20  *
21  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
24  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
26  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
27  * DEALINGS IN THE SOFTWARE.
28  */
29 include_once(dirname(__FILE__)."/../MapImageWidget/MapImageWidget.widget.php");
30
31 /**
32  * MapImageStatic
33  *
34  * @desc Map image widget. Provides a single click on the map and
35  * updates the NAV_INPUT_COORD parameter.
36  */
37 class MapImageStatic extends MapImageWidget
38 {
39     var   $msAnchorName = "mapanchor";
40     var   $mnWidth;
41     var   $mnHeight;
42
43     function MapImageStatic()
44     {
45         // invoke constructor of parent
46         parent::CWCWidget();
47        
48         // set the description for this widget
49         $this->szWidgetDescription= "This widget display a simple non navigable map";
50
51         $this->mnPriority = PRIORITY_HIGH;
52
53         $this->mnMaturityLevel = MATURITY_BETA;
54     }
55
56  /**
57      * initialize respectable defaults for the map
58      */
59     function InitDefaults()
60     {
61         parent::InitDefaults();
62     }
63
64 /**
65      * DrawPublish
66      *
67      * Draw the map and return the HTML.
68      */
69     function DrawPublish()
70     {
71
72         $szReturn = parent::DrawPublish();
73
74
75         return $szReturn;
76     }
77
78
79     /**
80      * GetJavascriptOnLoadFunctions
81      *
82      * On load functions.
83      */
84     function GetJavascriptOnLoadFunctions()
85     {
86         $oMap = $this->moMapObject->oMap;
87
88
89
90         return parent::GetJavascriptOnLoadFunctions();
91     }
92
93 }
94 ?>
Note: See TracBrowser for help on using the browser.