On Mon, Nov 10, 2008 at 7:38 PM, Ed Loach <[EMAIL PROTECTED]> wrote:
> Perhaps a bit late now, but:
>
>> It would be nice to get the name of the glacier rendered in the
>> center
>> of it but I didn't know how to implement this, the diagonal
>> lines
>> discussed previously might also be nice but I didn't know how
>> do do
>> those either.
>
> For diagonal lines, looking at the access restrictions, you would have 
> something like
>                        fill: url(#access-private-pattern);
>                        stroke: url(#access-private-pattern);
> instead of what you currently have. You would need to replace the pattern 
> name with your pattern name, e.g. glacier-pattern, and then define something 
> like:
>                <svg:pattern id="access-private-pattern" x="0" y="0" width="5" 
> height="5" patternUnits="userSpaceOnUse" patternTransform="scale(0.25)">
>                        <svg:path fill="none" stroke="#ff4040" 
> stroke-width="0.1" d="M5,0 L0,5 M0,0 L5,5"/>
>                </svg:pattern>
> in the appropriate section (though you'd need to check the stroke colour - 
> I've just copied what is in osm-map-features-z17 as an example).

Thanks for trying this out, I've tried fiddling with various
width/height scale() and stroke-width values but I haven't been able
to produce anything that doesn't look like crap. Maybe someone else
can make something better?

> I think the name should already appear in the middle of the glacier, at least 
> at zoom level 17, if this bit applies:
>                <rule e="way" k="natural" v="*" layer="5">
>                        <areaText k="name" class="caption-casing 
> generic-caption-casing" text-anchor="middle" startOffset="50%" layer="5"/>
>                        <areaText k="name" class="caption-core 
> generic-caption-core" text-anchor="middle" startOffset="50%" layer="5"/>
>                </rule>

It does, I just hadn't noticed, and it's pretty useless to only have
it at z17 for such a large feature, see for example:
http://server.tah.openstreetmap.org/Browse/slippy/?zoom=17&lat=64.80604&lon=-23.77402&layers=BF

I'm experimenting with adding rules to z12 to render the name at that level.

_______________________________________________
Tilesathome mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/tilesathome

Reply via email to