Hi all
Adapting the XML shown on that page, I have the following for one of the maps:
<Map background-color="transparent">
<Layer name="Geology">
<StyleName>raster</StyleName>
<Datasource>
<Parameter name="type">gdal</Parameter>
<Parameter name="file">/home/ubuntu/Maps/Jersey_25K_BGS_Geology.tif</Parameter>
<Parameter name="nodata">0</Parameter>
</Datasource>
</Layer>
<Style name="Geology">
<Rule name="rule1">
<RasterSymbolizer opacity="0.7" scaling="bilinear" mode="normal" />
<!-- <MinScaleDenominator>500</MinScaleDenominator>
<MaxScaleDenominator>100000</MaxScaleDenominator> -->
</Rule>
</Style>
</Map>
which is loaded using the command
python manage.py packages -o add_tileserver_layer -m "/home/ubuntu/Maps/Jersey_25K_BGS_Geology.xml" -n "Geology"
The layer name Geology then appears in the list of overlays but nothing appears when the layer is enabled.
I have tried adding projection parameters to the opening Map tag
<Map background-color="transparent" srs="+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.999601272 +x_0=400000 +y_0=-100000 +ellps=airy +towgs84=446.448,-125.157,542.06,0.15,0.247,0.842,-20.489 +units=m +no_defs">
and these are correct, as far as we can tell. If we change the background-color parameter to "white" or "black", the layer colour changes as expected.
These maps are complete in one file but we do have another map which is tiled in separate files: would we need to use a separate tile-server to use that?
I expect we've missed something simple but any help or advice would be appreciated!
Thanks
David