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

<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"
    textAttenuation="14"
    minimumMapWidth="1"
    minimumMapHeight="1"
    withOSMLayers="yes"
    showScale="no"
    showGrid="yes"
    showBorder="yes"
    showLicense="yes"
    interactive="no">

    <rule e="way" k="highway" v="motorway|motorway_link|trunk|trunk_link|primary|primary_link|secondary|tertiary|unclassified|residential">
        <line class="highway"/>
    </rule>

    <rule e="way" k="railway" v="*">
        <line class="railway"/>
    </rule>

    <rule e="node" k="railway" v="halt">
        <circle r="2" class="halt"/>
        <caption k="name" class="halt-text-casing" dx="3" dy="2.5"/>
        <caption k="name" class="halt-text-core" dx="3" dy="2.5"/>
    </rule>

    <rule e="node" k="railway" v="station">
        <circle r="4" class="station"/>
        <caption k="name" class="station-text-casing" dx="5" dy="3"/>
        <caption k="name" class="station-text-core" dx="5" dy="3"/>
    </rule>

    <defs>
        <style id="styles" type="text/css" xmlns="http://www.w3.org/2000/svg">

            .highway {
                fill: none;
                stroke: #b0b0b0;
                stroke-width: 2px;
                stroke-linecap: round;
            }

            .railway {
                fill: none;
                stroke: #000000;
                stroke-width: 2px;
                stroke-linecap: round;
            }

            .halt {
                fill: #000000;
                stroke: none;
            }

            .station {
                fill: #ff0000;
                stroke: #000000;
                stroke-width: 2px;
            }

            .station-text-casing {
                fill: black;
                stroke: white;
                stroke-width: 1px;
                font-size: 10;
                font-family: "DejaVu Sans",sans-serif;
            }

            .station-text-core {
                fill: black;
                stroke: none;
                stroke-width: 1px;
                font-size: 10;
                font-family: "DejaVu Sans",sans-serif;
            }

            .halt-text-casing {
                fill: black;
                stroke: white;
                stroke-width: 0.8px;
                font-size: 8;
                font-family: "DejaVu Sans",sans-serif;
            }

            .halt-text-core {
                fill: black;
                stroke: none;
                stroke-width: 0.8px;
                font-size: 8;
                font-family: "DejaVu Sans",sans-serif;
            }

            /* 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";
                font-size: 10px;
                fill: #8080ff;
            }

            .map-background {
                fill: #f8f8f8; 
                stroke: none;
            }

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

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

        </style>
    </defs>
</rules>

