Hi,
I am having problems with my restricted extent in IE.
If I could write the app another way I would but by using the restricted extent
I can set the start extent of the app. Using lon, lat to setCenter etc just
gives me more errors about dateline wrap.
It seems that when then map is loaded and the restricted extent has been set,
if
I try to pan without zooming, I get an error.
Has anyone esle had this error and managed to solve it?
yours,
Rob
map = new OpenLayers.Map("map",{
controls: [new OpenLayers.Control.MouseDefaults()
,new OpenLayers.Control.PanZoomBar()
,new OpenLayers.Control.MousePosition()
,new OpenLayers.Control.ScaleLine({geodesic: true})],
projection:epsg900913,
displayProjection: epsg900913,
units: "m",
maxResolution: 156543.0339,
maxExtent: new OpenLayers.Bounds(1069506.899621, 6727760.984838,
1268243.173127, 6945347.635727),
restrictedExtent: new OpenLayers.Bounds(871993.618568, 6598044.280668,
1483489.84474, 7087241.261605)
});
var mappanel = new GeoExt.MapPanel({
id:'mappanel',
region:"center",
height: 400,
width: 600,
map: map,
bbar:[{
xtype: "label",
text: "Maßstab = 1 : "
}],
tbar: [
toolbarItems,'','-',{
icon: '../images/printer.png',
tooltip: {title:'Export',text: 'Karte als PDF-Datei exportieren'},
handler: function() {
// convenient way to fit the print page to the visible map area
printPage.fit(mappanel, true);
// print the page, optionally including the legend
printProvider.print(mappanel, printPage);
},
allowDepress: false,
pressed: false,
checked: true
},'->','Ortssuche',' ',' ',quickzoom,geoNameSearchCombo]
});_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users