How to use GeodeteicGraticule options

classic Classic list List threaded Threaded
4 messages Options
Blanky Blanky
Reply | Threaded
Open this post in threaded view
|

How to use GeodeteicGraticule options

Hello,
 
I'm trying to make the GeodeticGraticule display 1x1 Lat Lon tiles regardless of my altitude. I essentially want altitude to be a non factor for what the layer displays. I tried messing with the gridLines and resolutions member variables. I essentially want one resolution of 1.0 no matter what but it's not doing what I expect regardless of what number I change for the gridlines. It either ignores my resolution or draws way too finely.
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: How to use GeodeteicGraticule options

This works for me (osgEarth 3.0 branch):


<map name="osgEarth Graticule">

    <xi:include href="readymap_imagery.xml"/>
 
    <GeodeticGraticule name="Geodetic" visible="true">
        <color>#ffff007f</color>
        <label_color>#ffffffff</label_color>
        <grid_lines>10</grid_lines>
        <resolutions>1.0</resolutions>
        <grid_lines_visible>true</grid_lines_visible>
        <grid_labels_visible>false</grid_labels_visible>
        <edge_labels_visible>true</edge_labels_visible>
    </GeodeticGraticule>
   
</map>
Glenn Waldron / Pelican Mapping
Blanky Blanky
Reply | Threaded
Open this post in threaded view
|

Re: How to use GeodeteicGraticule options

I am but a dumb butt Glenn and called init on the optional parameter instead of just assigning to it. Lol thank you though.
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: How to use GeodeteicGraticule options

:)
Glenn Waldron / Pelican Mapping