[fusion-commits] r1702 -
sandbox/msMapTip/templates/mapserver/standard
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Tue Dec 2 15:19:41 EST 2008
Author: pdeschamps
Date: 2008-12-02 15:19:41 -0500 (Tue, 02 Dec 2008)
New Revision: 1702
Modified:
sandbox/msMapTip/templates/mapserver/standard/ApplicationDefinition.xml
sandbox/msMapTip/templates/mapserver/standard/index.html
Log:
modified Gmap to work with maptip
Modified: sandbox/msMapTip/templates/mapserver/standard/ApplicationDefinition.xml
===================================================================
--- sandbox/msMapTip/templates/mapserver/standard/ApplicationDefinition.xml 2008-12-02 20:19:00 UTC (rev 1701)
+++ sandbox/msMapTip/templates/mapserver/standard/ApplicationDefinition.xml 2008-12-02 20:19:41 UTC (rev 1702)
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApplicationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="ApplicationDefinition-1.0.0.xsd">
-<!-- ******************************************
+<!-- ******************************************
* MapSet
-*
+*
* Contains the map(s) you want available to your
* application.
****************************************** -->
@@ -14,7 +14,7 @@
<Type>MapServer</Type>
<SingleTile>true</SingleTile>
<Extension>
- <MapFile>/ms4w/apps/gmap/htdocs/gmap75.map</MapFile>
+ <MapFile>/home/pdeschamps/fgs/apps/gmap-orig/htdocs/gmap75.map</MapFile>
</Extension>
</Map>
</MapGroup>
@@ -23,7 +23,7 @@
<Type>MapServer</Type>
<SingleTile>true</SingleTile>
<Extension>
- <MapFile>/ms4w/apps/gmap/htdocs/gmap75.map</MapFile>
+ <MapFile>/home/pdeschamps/fgs/apps/gmap-orig/htdocs/gmap75.map</MapFile>
</Extension>
</Map>
</MapGroup>
@@ -101,16 +101,16 @@
</MapGroup>
</MapSet>
-<!-- ******************************************
+<!-- ******************************************
* WidgetSet
*
-* Contains the widgets you want available to your
+* Contains the widgets you want available to your
* application.
****************************************** -->
<WidgetSet xsi:type="WidgetSetType">
-<!-- ******************************************
+<!-- ******************************************
* ContextMenu (Tasks)
*
* Menu available to the Task Pane
@@ -129,7 +129,7 @@
</Item>
</Container>
-<!-- ******************************************
+<!-- ******************************************
* ContextMenu (Map)
*
* Menu available to the Map on right-click
@@ -258,10 +258,10 @@
</Item>
</Container>
-<!-- ******************************************
+<!-- ******************************************
* Toolbar (Primary)
*
-*
+*
****************************************** -->
<Container xsi:type="UiItemContainerType">
@@ -330,10 +330,10 @@
</Container>
-<!-- ******************************************
+<!-- ******************************************
* Statusbar (Status Bar)
*
-*
+*
****************************************** -->
@@ -358,11 +358,11 @@
</Item>
</Container>
-
-<!-- ******************************************
+
+<!-- ******************************************
* Placeholder Widget
****************************************** -->
-
+
<Widget xsi:type="WidgetType">
<Name>menuPlaceholder</Name>
<Type>InvokeScript</Type>
@@ -379,7 +379,7 @@
-<!-- ******************************************
+<!-- ******************************************
* Context Menu - Widgets
*
* Widgets belonging to the map context menu
@@ -444,6 +444,19 @@
<Disabled/>
</Widget>
+ <Widget xsi:type="UiWidgetType">
+ <Name>Maptip</Name>
+ <Type>Maptip</Type>
+ <Extension xsi:type="CustomContentType">
+ <Delay>500</Delay>
+ <Tolerance>5</Tolerance>
+ <Layer>park</Layer>
+ <TextField>NAME_E</TextField>
+ <CustomURL>http://thisHost.com/parkInfo.php?parkId=[PARK_ID]&name=[NAME_E]</CustomURL>
+ </Extension>
+ </Widget>
+
+
<!-- CONTEXT MENU ZOOM FIXED (OUT) -->
<Widget xsi:type="UiWidgetType">
@@ -697,7 +710,7 @@
-<!-- ******************************************
+<!-- ******************************************
* Toolbar - Widgets
*
* Widgets belonging to the main toolbar
@@ -837,7 +850,7 @@
-<!-- ******************************************
+<!-- ******************************************
* Secondary toolbar - Widgets
*
* Widgets belonging to the secondary toolbar
@@ -919,7 +932,7 @@
-<!-- ******************************************
+<!-- ******************************************
* Status Bar - Widgets
*
* Widgets belonging to the status bar
@@ -987,7 +1000,7 @@
-<!-- ******************************************
+<!-- ******************************************
* Panels - Widgets
*
* Widgets belonging to the status bar
@@ -1022,7 +1035,7 @@
-<!-- ******************************************
+<!-- ******************************************
* Misc - Widgets
****************************************** -->
@@ -1123,7 +1136,7 @@
<MapId>reliance-roads</MapId>
</MapWidget>
-<!-- OVERVIEW MAP
+<!-- OVERVIEW MAP
<Widget xsi:type="WidgetType">
@@ -1158,7 +1171,7 @@
<!-- PAN -->
<Widget xsi:type="UiWidgetType">
-
+
<Name>Pan</Name>
<Type>Pan</Type>
<StatusItem>Drag the map to view areas out of range.</StatusItem>
Modified: sandbox/msMapTip/templates/mapserver/standard/index.html
===================================================================
--- sandbox/msMapTip/templates/mapserver/standard/index.html 2008-12-02 20:19:00 UTC (rev 1701)
+++ sandbox/msMapTip/templates/mapserver/standard/index.html 2008-12-02 20:19:41 UTC (rev 1702)
@@ -5,8 +5,8 @@
<title>Sample Fusion Application</title>
<!-- change the source of the following tag to point to your fusion installation
<script src='http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ'></script>
- -->
-<script type="text/javascript" src="../../../lib/fusionSF-compressed.js"></script>
+ -->
+<script type="text/javascript" src="../../../lib/fusion.js"></script>
<link rel="stylesheet" href="themes/delicious/jxtheme.uncompressed.css" type="text/css" media="screen" charset="utf-8">
<link rel="stylesheet" href="icons.css" type="text/css" media="screen" charset="utf-8">
<style type="text/css">
@@ -35,7 +35,7 @@
/* make 'thePage' just fill the browser window and resize automagically
the user resizes the browser */
new Jx.Layout('thePage').resize();
-
+
var topToolbar = new Jx.Toolbar({id: 'Toolbar', position: 'top'});
var mainPanel = new Jx.Panel({
id: 'Main',
@@ -46,32 +46,32 @@
new Jx.Layout('Main', {right: 250, bottom: 30});
new Jx.Layout('TaskPane', {width: 250, left: null, bottom: 30});
new Jx.Layout('Statusbar', {height: 30, top: null});
-
+
new Jx.Splitter(mainPanel.content, {
elements: ['PanelPane', 'Map'],
containerOptions: [{width: 200}, {}]
});
var p1 = new Jx.Panel({
- label: 'Legend',
- content: 'Legend',
- collapse: false,
+ label: 'Legend',
+ content: 'Legend',
+ collapse: false,
maximize: true
});
var p2 = new Jx.Panel({
- label: 'Selection',
- content: 'SelectionPanel',
- collapse: false,
+ label: 'Selection',
+ content: 'SelectionPanel',
+ collapse: false,
maximize: true
});
var p3 = new Jx.Panel({
- label: 'Overview Map',
- content: 'OverviewMap',
- collapse: false,
+ label: 'Overview Map',
+ content: 'OverviewMap',
+ collapse: false,
maximize: true
});
var pm = new Jx.PanelSet({parent: 'PanelPane', panels: [p1, p2, p3]});
-
+
Fusion.registerForEvent(Fusion.Event.FUSION_INITIALIZED, function() {
$('thePage').resize({forceResize: true});
$('thePage').style.visibility = 'visible';
@@ -97,7 +97,8 @@
<div id="SelectionPanel"></div>
<div id="OverviewMap"></div>
</div>
-<div id="Map"><div id="Navigator"></div></div>
+<div id="Map"><div id="Navigator"></div>
+<div id="Maptip"></div></div>
<div id="Statusbar"></div>
<div id="TaskPane"></div>
<div id="PoweredBy" class="statusBarItem">
More information about the fusion-commits
mailing list