                     alpha={tiledLyr.alpha}
                     url={tiledLyr.url}
                     useproxy={tiledLyr.proxyURL != null}/>;
+            if (tiledLyr.refreshInterval > 0)
+            {
+                lyrXML.@autorefresh = minutesToSeconds(tiledLyr.refreshInterval);
+            }
             if (tiledLyr.showInLegend)
             {
                 if (tiledLyr.showInLegendHiddenLayers)

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

                    type="osm"
                    visible={osmLyr.visible}
                    alpha={osmLyr.alpha}/>;
            if (osmLyr.refreshInterval > 0)
            {
                lyrXML.@autorefresh = minutesToSeconds(osmLyr.refreshInterval);
            }
            if (!osmLyr.showInLegend)
            {
                lyrXML.@showinlegend = false;
