From 27d3e801629cc952979f48bb507dae782bbab34a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 25 Jan 2011 23:31:49 +0200 Subject: Add support for zlib map layer compression. Reviewed-by: Bertram --- src/resources/mapreader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index b7c4fd72..b0720af5 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -277,7 +277,7 @@ void MapReader::readLayer(xmlNodePtr node, Map *map) if (encoding == "base64") { - if (!compression.empty() && compression != "gzip") + if (!compression.empty() && compression != "gzip" && compression != "zlib") { logger->log("Warning: only gzip layer compression supported!"); return; @@ -313,7 +313,7 @@ void MapReader::readLayer(xmlNodePtr node, Map *map) if (binData) { - if (compression == "gzip") + if (compression == "gzip" || compression == "zlib") { // Inflate the gzipped layer data unsigned char *inflated; -- cgit v1.2.3-70-g09d2