<?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="node" k="amenity" v="post_box|post_office">
        <circle r="50" class="postbox-area"/>
    </rule>

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

    <rule e="way" k="highway" v="residential|pedestrian">
        <line class="highway-residential"/>
    </rule>

    <rule e="node" k="amenity" v="post_box">
        <circle r="3" class="postbox-point"/>
    </rule>

    <rule e="node" k="amenity" v="post_office">
        <circle r="3" class="postoffice-point"/>
        <circle r="100" class="postoffice-area"/>
    </rule>

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

            .postoffice-area {
                fill: none;
                stroke: #f00000;
                stroke-width: 2px;
                stroke-dasharray: 1 1;
            }
 
            .postoffice-point {
                fill: #f00000;
                stroke: none;
            }

            .postbox-area {
                fill: #f0f000;
                stroke: none;
            }
 
            .postbox-point {
                fill: #000000;
                stroke: none;
            }

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

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

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

