Friday, April 20, 2012

Performance Tip for Mapguide Tiled layers with Fusion

Internally, Fusion uses OpenLayers to display maps. By default, titled maps use a buffer factor of 2

http://dev.openlayers.org/docs/files/OpenLayers/Layer/Grid-js.html#OpenLayers.Layer.Grid.buffer

This buffer setting determines how many off screen tiles are loaded, you can tweak this option using the following syntax in your ApplicationDefinition.xml

<Map>
               <Type>MapGuide</Type>
                <SingleTile>false</SingleTile>
                <Extension>
                        <ResourceId>Library:// .....</ResourceId>
                        <Options>
                            <buffer>0</buffer>                               
                        </Options>                       
                </Extension>
</Map>

Setting buffer:0 means that only the initially visible tiles are loaded, which means as you pan, the tiles are loaded as required

No comments: