<!--
osgEarth Sample
Run this example with:

  osgearth_featurefilter feature_custom_features.earth

Shows how you can use a custom FeatureFilter, even one that is defined in an Earth File!  
-->

<map name="Feature Custom Filter Demo">
        
    <GDALImage name="world">
        <url>../data/world.tif</url>
    </GDALImage>
    
    <OGRFeatures name="city-data">
        <url>../data/world.shp</url>
        
        <!--Define a ChangeAttributeFilter, which is defined in the osgearth_featurefilter example.  This will change the name of all countries to osgEarthLand.-->
        <filters>
            <change_attribute key="name" value="osgEarthLand"/>
        </filters>
    </OGRFeatures>
    
    <FeatureModel name="cities" features="city-data">
        <styles>
            <style type="text/css">              
                cities {
                   text-provider:  annotation;
                   text-content:   feature.properties.name;
                   text-priority:  feature.properties.pop;
                   text-halo:      #3f3f7f;
                   text-align:     center_center;
                   text-declutter: true;
                }     
            </style>
        </styles>        
    </FeatureModel>
    
    <screen_space_layout>
        <out_animation_time>  0.0  </out_animation_time>
        <in_animation_time>   0.25 </in_animation_time>
        <min_animation_scale> 0.45 </min_animation_scale>
        <min_animation_alpha> 0.35 </min_animation_alpha>
        <sort_by_priority>    true </sort_by_priority>
    </screen_space_layout>
  
</map>
