                     imageformat={wmtsLayer.imageFormat}
                     url={wmtsLayer.url}
                     useproxy={tiledLyr.proxyURL != null}/>;
+            if (wmtsLayer.refreshInterval > 0)
+            {
+                lyrXML.@autorefresh = minutesToSeconds(wmtsLayer.refreshInterval);
+            }
             if (!wmtsLayer.showInLegend)
             {
                 lyrXML.@showinlegend = false;

                        visible={webTiledLayer.visible}
                        alpha={webTiledLayer.alpha}
                        url={webTiledLayer.urlTemplate}/>;
                if (!webTiledLayer.showInLegend)
                {
                    lyrXML.@showinlegend = false;

                    visible={veLyr.visible}
                    alpha={veLyr.alpha}
                    style={veLyr.mapStyle}/>;
            if (veLyr.refreshInterval > 0)
            {
                lyrXML.@autorefresh = minutesToSeconds(veLyr.refreshInterval);
            }
            if (!veLyr.showInLegend)
            {
                lyrXML.@showinlegend = false;
