<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet type="text/xsl" href="osmarender.xsl"?>

<!-- Render just captions for z5 -->

<rules
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xmlns:svg="http://www.w3.org/2000/svg"
    data="data.osm"
    svgBaseProfile="full"
    scale="1"
    symbolScale="1"
    minimumMapWidth="0"
    minimumMapHeight="0"
    withOSMLayers="yes"
    withUntaggedSegments="no"
    showScale="no"
    showGrid="no"
    showBorder="no"
    showLicense="no"
    interactive="no">


    <rule e="node|way" k="osmarender:render" v="~|yes">

    <rule e="node" k="place" v="*" layer="5">
      <rule e="node" k="capital" v="~|no|false|False" layer="5">
        <rule e="node" k="place" v="city" horizontalProximity="1.0" verticalProximity="0.9" layer="5">
          <text k="name" class='caption-casing city-caption-casing' />
          <text k="name" class='caption-core city-caption' />
        </rule>
      </rule>
      <else>
        <text k="name" class='caption-casing capital-caption-casing' />
        <text k="name" class='caption-core capital-caption' />
      </else>

      <rule e="node" k="place" v="country" horizontalProximity="0.8" verticalProximity="0.8">
        <text k="name" class='caption-casing country-caption-casing' />
        <text k="name" class='caption-core country-caption' />
      </rule>
    </rule> <!-- e="node" k="place" v="*" -->



    </rule> <!-- k="osmarender:render" v="~|yes" -->

    <!-- SVG Definitions - markers, symbols etc go here -->
    <defs>

        <style id="styles" type="text/css" xmlns="http://www.w3.org/2000/svg">
            /* DO NOT DELETE .untagged-segments - Used by osmarender.xsl */
            .untagged-segments {
                stroke-width: 0.5px;
                stroke-linejoin: miter;
                stroke-linecap: butt;
                stroke: #e0e0e0;
                stroke-dasharray: 0.5,0.5;
            }

            .caption-casing {
                fill: white;
                stroke: white;
                font-family: "DejaVu Sans";
                font-weight: normal;
                text-anchor: middle;
                stroke-miterlimit: 1.5;
            }

            .caption-core {
                stroke: white;
                stroke-width: 0px;
                fill: black;
                font-family: "DejaVu Sans";
                font-weight: normal;
                text-anchor: middle;
                stroke-miterlimit: 1.5;
            }

            .country-caption-casing { font-size: 6000px; stroke-width: 1000px; }
            .country-caption        { font-size: 6000px; }

            .capital-caption-casing    { font-size: 4300px; stroke-width: 1500px; }
            .capital-caption           { font-size: 4300px; }

            .city-caption-casing    { font-size: 4000px; stroke-width: 500px; }
            .city-caption           { font-size: 4000px; }


            /* Map decoration */
            .map-grid-line {
                fill: none;
                stroke: #8080ff;
                stroke-width: 0.1px;
                stroke-opacity: 0.5;
            }

            .map-border-casing {
                fill: none;
                stroke: #8080ff;
                stroke-width: 3px;
                stroke-miterlimit: 4;
                stroke-dasharray: none;
                stroke-opacity: 1;
                stroke-linecap: round;
            }

            .map-border-core {
                fill: none;
                fill-opacity: 1;
                fill-rule: nonzero;
                stroke: #ffffff;
                stroke-width: 2px;
                stroke-miterlimit: 0;
                stroke-dashoffset: -0.5px;
                stroke-opacity: 1;
            }

            .map-scale-casing {
                fill: none;
                stroke: #8080ff;
                stroke-width: 4px;
                stroke-linecap: butt;
            }

            .map-scale-core {
                fill: none;
                stroke: #ffffff;
                stroke-width: 3px;
                stroke-linecap: butt;
            }

            .map-scale-bookend {
                fill: none;
                stroke: #8080ff;
                stroke-width: 1px;
                stroke-linecap: butt;
            }

            .map-scale-caption {
                font-family: "DejaVu Sans",sans-serif;
                font-size: 10px;
                fill: #8080ff;
            }

            <!-- map background must be the same for all zooms or else empty tile detection will fail -->
            .map-background {
                fill: #f8f8f8;
                stroke: none;
            }

            .map-title {
                font-family: "DejaVu Sans",sans-serif;
                font-size: 20px;
                text-anchor: middle;
                fill: black;
            }

            .map-title-background {
                fill: white;
            }

            .map-marginalia-background {
                fill: white;
            }
        </style>

    </defs>

</rules>
