I hope someone can help.

I have Mapnik up and all examples are working.

I have Tilecache up and it's example is working.

When trying to get the two to work it fails.

Can some one please tell us or point us to documentation on the proper way
to use these two togeather.

My tilecache.cfg looks like this.
[tad]
type=mapnik
mapfile=C:\data_dir\data\shapefiles\tad.xml
extension=png
metaTile=yes 
spherical_mercator=true
tms_type=google

My OpenLayers Looks like this.
<script type="text/javascript">
        <!--
        var map, layer;

        function init(){
            map = new OpenLayers.Map( $('map'), {'maxResolution': 360/512});
            layer = new OpenLayers.Layer.WMS( "mapnik", 
                    "tilecache.py?", {layers: 'tad', format: 'image/png' }
);
            map.addLayer(layer);
            map.addControl(new OpenLayers.Control.Permalink());
            if (!map.getCenter()) map.zoomToMaxExtent();
        }
        // -->
    </script>


Any help is appreciated.

Thanks,
Rob
-- 
View this message in context: 
http://www.nabble.com/Mapnik-%2B-Tilecache-%2B-OpenLayers-tp24768564p24768564.html
Sent from the Mapnik - Users mailing list archive at Nabble.com.

_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to