A latitude of -89.983333 is beyond the validity extent of EPSG:900913. Keep in mind that the poles stretch to infinity in this projection.
You have to use a projection that is appropriate for mapping the south pole, and you won't be able to use Mapnik tiles with that. Andreas. On Mon, Jul 18, 2011 at 5:49 PM, Jürgen Dankoweit <[email protected]> wrote: > Hello to the list. > > With the code below there is no map displayed. Why not? If I change the > bounding box to coordinates more nortly then a map is displayed. > First I thought that there is only ice but I checked this on the > OpenStreetmap-Site and there a coast line should be drawn. > > Many thanks for tips and hints. > > Best regards > > Juergen > > code: > function init(){ > var map; > var point; > var lonLat; > var sphericalMercator = new OpenLayers.Projection('EPSG:900913'); > var epsg4326 = new OpenLayers.Projection('EPSG:4326'); > var leftBottom = new > OpenLayers.LonLat(166.516667,-89.983333).transform(epsg4326, > sphericalMercator); > var rightTop = new > OpenLayers.LonLat(179.983333,-77.850000).transform(epsg4326, > sphericalMercator); > var bounds = new OpenLayers.Bounds(leftBottom.lon, leftBottom.lat, > rightTop.lon, rightTop.lat); > > var layer = new OpenLayers.Layer.OSM.Mapnik('Standardkarte'); > map = new OpenLayers.Map('map', { > maxExtent: bounds, restrictedExtent: bounds, projection: > sphericalMercator, > displayProjection: epsg4326, > controls: [ > new OpenLayers.Control.Navigation(), > new OpenLayers.Control.PanZoomBar(), > new OpenLayers.Control.OverviewMap(), > new OpenLayers.Control.LayerSwitcher({'ascending':false}) > ] > }); > map.addLayer(layer); > > lonLat = new OpenLayers.LonLat((leftBottom.lon + > rightTop.lon)/2,(leftBottom.lat + rightTop.lat) / 2) > .transform(epsg4326, map.getProjectionObject()); > map.setCenter(lonLat); > map.zoomToMaxExtent(); > map.addControl(new OpenLayers.Control.LayerSwitcher()); > } > -- > Meine stets unfertige Homepage: www.dankoweit.de > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users > -- Andreas Hocevar OpenGeo - http://opengeo.org/ Expert service straight from the developers. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
