[OpenLayers-Users] OpenLayers / TileCache setup
Daniel Behr
daniel.behr at hzg.de
Fri Oct 28 02:20:39 EDT 2011
Hi,
my settings for tilecache look like this:
[osm]
type=MapnikLayer
mapfile=/osm_map.xml
bbox=-20037508.34,-20037508.34,20037508.34,20037508.34
maxResolution=156543.03390625
levels=20
spherical_mercator=true
metaTile=yes
metaBuffer=128
srs=EPSG:900913
extent_type=loose
HTH
Daniel
Am 27.10.2011 22:31, schrieb John Williams:
> I have a setup with mapnik, tilecache and OpenLayers on Ubuntu that I
> can't get to work quite right. I'm mailing this list because I'm pretty
> sure it's an issue with my OpenLayers configuration. My tilecache config
> looks like this:
>
> [cache]
> type=Disk
> base=/tmp/tilecache
>
> [osm]
> type=Mapnik
> mapfile=/path/to/osm.xml
> spherical_mercator=true
> levels=19
>
> And my javascript:
>
> options = {
> maxResolution:156543.0339,
> units:'m',
> projection: new OpenLayers.Projection("EPSG:900913"),
> displayProjection: new OpenLayers.Projection("EPSG:4326"),
> maxExtent: new
> OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),
> restrictedExtent: new
> OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34),
> numZoomLevels: 19
> };
>
> map = new OpenLayers.Map('map', options);
>
> layer = new OpenLayers.Layer.TMS("osm", "/tilecache/",
> {serviceVersion: "1.0.1", layername: "osm", type: "png",
> sphericalMercator: true});
>
> map.addLayer(layer);
>
> I'd appreciate any thoughts about what I am/may be doing wrong. Thanks!
>
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
Helmholtz-Zentrum Geesthacht
Zentrum für Material- und Küstenforschung GmbH
Max-Planck-Straße 1 I 21502 Geesthacht I Deutschland/Germany
Geschäftsführer/Board of Management: Prof. Dr. Wolfgang Kaysser, Dipl.-Ing. Michael Ganß
Vorsitzender des Aufsichtsrates/Chairman of the Supervisory Board: MinDirig, Wilfried Kraus
Amtsgericht Lübeck HRB 285 GE (Register Court)
Internet: http://www.hzg.de
More information about the Users
mailing list