[Tilecache] mapnik + tilecache + openlayers
kryptonite
paschatap at gmail.com
Mon May 18 17:16:13 EDT 2009
Jeffrey,
Yeah..Also I was able to display a basic layer that is part of the
tilecache installation.
XML returned from direct access:
<Services>
<TileMapService version="1.0.0"
href="http://localhost/cgi-bin/tilecache.cgi/1.0.0/"/>
</Services>
Jeffrey Johnson wrote:
>
> Can you access the tilecache cgi script directly outside of OpenLayers?
>
> On Mon, May 18, 2009 at 1:02 PM, kryptonite <paschatap at gmail.com> wrote:
>>
>> Hi,
>> I have been trying for the past few days to get a simple map to display
>> with mapnik+tilecache+openlayers. I have installed mapnik , and got the
>> default rundemo.py running , map.xml being one that was generated. the
>> image
>> files were generated too like the documentation on mapnik says. I have
>> also
>> successfully displayed a map using openlayers and tilecache but this time
>> was with mapserver.
>> But coming to the main problem which is using
>> tilecache+openlayers+mapnik. Now all i did in the tilecache.cfg was
>> include
>> a layer like this:
>>
>> [testlayer]
>> type=Mapnik
>> mapfile=C:\mapnik_0_6_0\demo\python\map.xml
>> bbox=-8024477.28459,5445190.38849,-7381388.20071,5662941.44855
>> maxResolution=2545.4906698
>> extent_type=loose
>> srs=EPSG:900913
>>
>> in the index.html , I included:
>>
>> var options = {
>> controls: [
>>
>> new OpenLayers.Control.MouseDefaults(),
>>
>> new OpenLayers.Control.KeyboardDefaults(),
>>
>> new OpenLayers.Control.PanZoomBar(),
>>
>> new OpenLayers.Control.LayerSwitcher(),
>>
>> new OpenLayers.Control.Permalink()
>> ],
>> maxResolution:
>> 2545.4906698,
>> maxExtent: new
>> OpenLayers.Bounds(-8024477.28459,5445190.38849,-7381388.20071,5662941.44855),
>> units: "m",
>> projection: "EPSG:900913"
>>
>> };
>>
>> function init(){
>> map = new OpenLayers.Map( 'map', options);
>> layer = new OpenLayers.Layer.WMS( "VMap0",
>> "/cgi-bin/tilecache.cgi?",
>> {
>> layers :
>> 'testlayer
>>
>> }
>> );
>> map.addLayer(layer);
>> }
>>
>> But after doing all this , the browser only displays pink tiles.There is
>> no
>> folder created for the testlayer images. I am simply lost. Can anyone
>> point
>> out what I am really missing here.I would really appreciate it.
>> --
>> View this message in context:
>> http://n2.nabble.com/mapnik-%2B-tilecache-%2B-openlayers-tp2935333p2935333.html
>> Sent from the TileCache mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> Tilecache mailing list
>> Tilecache at openlayers.org
>> http://openlayers.org/mailman/listinfo/tilecache
>>
> _______________________________________________
> Tilecache mailing list
> Tilecache at openlayers.org
> http://openlayers.org/mailman/listinfo/tilecache
>
>
--
View this message in context: http://n2.nabble.com/mapnik-%2B-tilecache-%2B-openlayers-tp2935333p2935746.html
Sent from the TileCache mailing list archive at Nabble.com.
More information about the Tilecache
mailing list