Hi, in your subclass, override wrapDateLine to false.
Andreas. On Sat, Jan 21, 2012 at 9:20 AM, Jan Tappenbeck <[email protected]> wrote: > hi ! > > here are some additional infos. > > the tiles are only in a tile-folder on my webspace without any special > additional slippy-map-software! > > regards Jan :-) > > > Am 20.01.2012 17:59, schrieb Jan Tappenbeck: >> >> hi ! >> >> i have render some tiles for the area of europe - names only by >> zoom-level 4->10. >> >> the layer is include by >> >> var newLayer = new OpenLayers.Layer.OSM.Local("NewLayerLocal"); >> map.addLayer(newLayer); >> >> additional in OpenStreetMap.js >> >> OpenLayers.Layer.OSM.Local = OpenLayers.Class(OpenLayers.Layer.OSM, { >> >> initialize: function(name, options) { >> >> var url = [ >> "http://www.tappenbeck.net/osm/ferry2011/tiles/${z}/${x}/${y}.png" >> ]; >> >> options = OpenLayers.Util.extend( >> { numZoomLevels: 19, isBaseLayer: false}, options); >> var newArguments = [name, url, options]; >> OpenLayers.Layer.OSM.prototype.initialize.apply >> (this,newArguments); >> }, >> >> CLASS_NAME: "OpenLayers.Layer.OSM.Local" >> }); >> >> >> >> and you can show in >> http://osm.tappenbeck.net/ferry2011/deu/ferry_iframe_debug.php >> >> the problem now is when the zoom-level is 5 and higher the names of the >> north will repeat - but only in the vertical to the north. >> >> did anyone have a idea ?? >> >> regards Jan :-) > > > > _______________________________________________ > 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
