<!--
osgEarth Sample - Graticules
Run this with osgearth_toc to toggle the various graticule types on and off.
-->

<map name="osgEarth Graticules">

    <xi:include href="readymap_imagery.xml"/>
    
    <GARSGraticule name="GARS" enabled="false">
        <style type="text/css">
                default {
                    stroke: #ffff00;
                    stroke-width: 3px;
                    stroke-tessellation-segments: 10;
                    text-size: 28;
                    text-fill: #ffffff7f;
                    text-align: left_bottom;
                }        
        </style>
    </GARSGraticule>  
    
    <MGRSGraticule name="MGRS" enabled="false">
        <sqid_data>../data/mgrs_sqid.bin</sqid_data>
        <styles>
            <style type="text/css">
                gzd {
                    stroke: #ff000059;
                    stroke-width: 4px;
                    stroke-tessellation-segments: 10;
                    text-fill: #7f7f7fff;
                    text-align: left_bottom;
                }
                100000 {
                    stroke: #ffff0059;
                    stroke-width: 3px;
                    text-size: 28;
                    text-fill: #ffffff7f;
                    text-align: left_bottom;
                }
                10000 {
                    stroke: #00ff0059;
                    stroke-width: 2px;
                }
                1000 {
                    stroke: #7f7fff59;
                    stroke-width: 2px;
                }
                100 {
                    stroke: #ffffff59;
                    stroke-width: 1px;
                }
                10 {
                    stroke: #ffffff59;
                    stroke-width: 1px;
                }
                1 {
                    stroke: #ffffff59;
                    stroke-width: 1px;
                }                
            </style>
        </styles>
    </MGRSGraticule>
    
    <MGRSGraticule name="UTM" enabled="false">
        <use_default_styles>false</use_default_styles>
        <styles>
            <style type="text/css">
                gzd {
                    stroke: #ffffff59;
                    stroke-width: 3px;
                    stroke-tessellation-segments: 10;
                    text-fill: #7f7f7fff;
                    text-align: left_bottom;
                }        
            </style>
        </styles>
    </MGRSGraticule>
            
    <GeodeticGraticule name="Geodetic" open="true">
        <color>#ffff007f</color>
        <label_color>#ffffffff</label_color>
        <grid_lines>10</grid_lines>
        <resolutions>10 5 2.5 1.0 0.5 0.25 0.125 0.0625 0.03125</resolutions>
        <grid_lines_visible>true</grid_lines_visible>
        <grid_labels_visible>true</grid_labels_visible>
        <edge_labels_visible>true</edge_labels_visible>
    </GeodeticGraticule>
    
    <xi:include href="viewpoints.xml"/>
</map>
