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

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

<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">


    <!-- Non-physical boundaries -->
    <rule e="way" k="boundary" v="administrative">
      <rule e="way" k="admin_level" v="2">
        <line class="boundary boundary-level-2-casing no-bezier" />
        <line class="boundary boundary-level-2-core no-bezier" />
      </rule>
      <rule e="way" k="admin_level" v="1">
        <line class="boundary boundary-level-1-casing no-bezier" />
        <line class="boundary boundary-level-1-core no-bezier" />
      </rule>
    </rule>

    <rule e="node" k="place" v="*">
      <rule e="node" k="capital" v="~|no|false|False">
        <rule e="node" k="place" v="city" horizontalProximity="0.1" verticalProximity="0.2" >
          <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="*" -->

    <!-- 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;
            }

            .capital-caption-casing { font-size: 2000px; stroke-width: 300px; font-variant: small-caps; }
            .capital-caption        { font-size: 2000px; font-variant: small-caps; }

            .city-caption-casing    { font-size: 1500px; stroke-width: 300px; }
            .city-caption           { font-size: 1500px; }

            /* Non-physical boundaries */
            .boundary {
            stroke-linecap: round;
            stroke-linejoin: round;
            fill: none;
            }
            
            .boundary-level-1-casing {
            stroke-width: 400px;
            stroke: #ffff00;
            opacity: 0.6;
            }
            
            .boundary-level-1-core {
            stroke-width: 300px;
            stroke: #f9574b;
            stroke-dasharray: 900, 300, 300, 300;
            }
            
            .boundary-level-2-casing {
            stroke-width: 350px;
            stroke: #ffff00;
            opacity: 0.6;
            }
			
            .boundary-level-2-core {
            stroke-width: 250px;
            stroke: #f9574b;
            stroke-dasharray: 600, 600;
            }
			

            /* 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>
