[mapguide-users] Re: SV: SV: Can't select features using commercial
overlays
Peter von Barth
peter.vonbarth at eon.se
Tue Feb 22 05:44:45 EST 2011
one more try.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>EON MapServer</title>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8">
<script
src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=XTe_dDTV34GFsx8sj3w_4qL76z6iBUbb2aDtNVomGFqmPvHGJZcPgxXonL5r0o26upg1Vg--"></script>
<script
src="http://maps.google.com/maps?file=api&v=2&sensor=false&key=ABQIAAAAPrUgD2WqQisUBUMCKnkU4xSVrovqgKLmREEerE6ydUcQmn1bWRRVk_HRx5hbgGGAMBOXKn99Z9iU8Q"
type="text/javascript"></script>
<script
src='http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1'></script>
<script type="text/javascript"
src="../../../lib/fusionSF-compressed.js"></script>
<link rel="stylesheet" href="jxtheme.css" type="text/css" media="screen"
charset="utf-8">
<!--[if lte IE 6]>
<link rel="stylesheet" href="ie6.css" type="text/css" media="screen"
charset="utf-8">
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" href="ie7.css" type="text/css" media="screen"
charset="utf-8">
<![endif]-->
<link rel="stylesheet" href="icons.css" type="text/css" media="screen"
charset="utf-8">
<script type="text/javascript">
var panel1;
var panel2;
var panel3;
var panel4;
var panelman;
window.onload = function() {
Fusion.initializeLocale(); //need to call this first if
String.Translate is to be used in the onload
var main = new Jx.Layout('AppContainer');
new Jx.Layout('FileMenu', {
left: 5,
right: 5,
top: 5,
height: 25
});
new Jx.Layout('Toolbar', {
left: 5,
right: 5,
top: 30,
height: 24
});
new Jx.Layout('ToolbarVertical', {
left: 5,
width: 28,
top: 54,
bottom: 21
});
new Jx.Layout('SplitterArea', {
left: 33,
top: 54,
right: 5,
bottom: 22
});
new Jx.Layout('MapArea');
new Jx.Layout('Map');
new Jx.Layout('StatusbarContainer', {
height: 22,
bottom: 0,
top: null
});
new Jx.Layout('Statusbar', {
right: 159
});
var splitter = new Jx.Splitter('SplitterArea', {
splitInto:2,
elements:[$('MapArea'),$('Sidebar')],
layout:'horizontal',
containerOptions: [{},{minWidth:8, width: 218}],
barOptions: [
{
snap: 'after',
snapElement: $('SidebarCollapse'),
snapEvents: ['click']
}
]
});
/* create dynamic content */
panel1 = new Jx.Panel({
label: OpenLayers.i18n('legendTitle'),
collapse: false,
maximize: true,
contentId: 'Legend'});
panel1.content.id = 'Legend';
panel2 = new Jx.Panel({
label: OpenLayers.i18n('selectionPanelTitle'),
collapse: false,
maximize: true,
contentId: 'SelectionPanel'});
panel3 = new Jx.Panel({
label: OpenLayers.i18n('taskPaneTitle'),
collapse: false,
maximize: true,
contentId: 'TaskPane'});
panel4 = new Jx.Panel({
label: OpenLayers.i18n('ovmapTitle'),
collapse: false,
maximize: true,
contentId: 'OverviewMap'});
panelman = new Jx.PanelSet({parent: splitter.elements[1], panels: [panel1,
panel2, panel3, panel4]});
main.resize();
Fusion.registerForEvent(Fusion.Event.FUSION_INITIALIZED,
fusionInitialized);
Fusion.registerForEvent(Fusion.Event.FUSION_ERROR, fusionError);
Fusion.initialize();
}
var fusionError = function(eventId, error) {
alert('Fusion Error: \n' + error.toString());
//console.log('Fusion Error: \n' + error.toString());
}
var fusionInitialized = function() {
$('AppContainer').resize({forceResize: true});
}
var showOverviewMap = function() {
panelman.maximizePanel(panel4);
}
var showTaskPane = function() {
panelman.maximizePanel(panel3);
}
var showLegend = function() {
panelman.maximizePanel(panel1);
}
var showSelectionPanel = function() {
panelman.maximizePanel(panel2);
}
</script>
</head>
<body>
<div id="AppContainer">
<div id="FileMenu"></div>
<div id="SplitterArea">
<div id="MapArea">
<div id="Map"></div>
<div id="Navigator"></div>
</div>
<div id="Sidebar">
<!-- Collapse Sidebar -->
<div id="SidebarCollapse">
#
</div>
</div>
</div>
<div id="Toolbar"></div>
<div id="ToolbarVertical"></div>
<div id="StatusbarContainer">
<div id="Statusbar"></div>
<div id="pbmg"> images/pbmg.gif </div>
</div>
</div>
<div id="Maptip"></div>
</body>
</html>
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Can-t-select-features-using-commercial-overlays-tp6023133p6051867.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list