[OSM-dev] [patch] osmarender fixups.

Etienne 80n80n at gmail.com
Sat Sep 16 08:19:13 BST 2006


Rob
Great stuff!

Do you envisage making the appearance of the grid controllable from the
rules file?

The user could then choose their own CSS style and interval.  Something like
this:

<rules grid="yes" grid-class="feint-lines" horizontal="1000" vertical="1000"
...

Etienne


On 9/16/06, Robert Hart <Robert.Hart at burohappold.com> wrote:
>
>
> Folks,
>
> I've been having a look through the osmarender code. Attached patch does
> following:
>
> 1. Calculate $projection automatically from latitude. Unfortunately I live
> at a latitude where the current default is almost exactly correct. I'd
> appreciate feedback from people who are used to maps where 1.6 is
> obviously
> wrong, and from people in the southern hemisphere (if there are any)
>
> 2. Correct the length of the 1km scale. This was out by a factor of
> $projection. (because although it's drawn horizontally, it's length is
> calculated using latitudes)
>
> 3. Tweak the appearance of the scale to show subdivisions. Any objections?
>
> 4. Add a template to draw a 1km grid over the map. This is commented out
> by
> default, as I don't think everybody will want this, and it needs to be a
> bit
> smarter. Consider it a work in progress.
>
> Maybe I should have split this up into separate patches as they are all
> independent. It's late now though.
>
> Rob
>
>
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20060916/7ff3cc48/attachment.html>


More information about the dev mailing list