[OpenLayers-Users] Re: Problem to show tiles .... additional infos
Andreas Hocevar
ahocevar at opengeo.org
Tue Jan 24 09:39:43 EST 2012
Hi,
in your subclass, override wrapDateLine to false.
Andreas.
On Sat, Jan 21, 2012 at 9:20 AM, Jan Tappenbeck <osm at tappenbeck.net> 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
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Users
mailing list