[mapguide-commits] r9827 - trunk/MgDev/Common/Renderers
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Mon Feb 1 00:39:08 PST 2021
Author: jng
Date: 2021-02-01 00:39:07 -0800 (Mon, 01 Feb 2021)
New Revision: 9827
Modified:
trunk/MgDev/Common/Renderers/MVTRenderer.cpp
Log:
Encode version and extent of 4096 for every MVTTileLayer we create. This is information assumed to be present by some client MVT libraries (eg. OpenLayers 6.x)
Fixes #2835
Modified: trunk/MgDev/Common/Renderers/MVTRenderer.cpp
===================================================================
--- trunk/MgDev/Common/Renderers/MVTRenderer.cpp 2021-01-04 17:03:16 UTC (rev 9826)
+++ trunk/MgDev/Common/Renderers/MVTRenderer.cpp 2021-02-01 08:39:07 UTC (rev 9827)
@@ -72,6 +72,10 @@
{
m_activeLayer = std::make_shared<MVTTileLayer>();
m_activeLayer->setName(name);
+ // In the past it appeared we were able to get away with not setting this information, but with recent client libraries like
+ // OpenLayers, this information is expected to be there, so set it.
+ m_activeLayer->setVersion(2);
+ m_activeLayer->setExtent(4096);
m_tile.addLayer(m_activeLayer);
}
More information about the mapguide-commits
mailing list