[openstreetmap/openstreetmap-website] Add border/casing/line attributes to svg map keys (PR #4431)
Anton Khorev
notifications at github.com
Sun Dec 24 03:59:35 UTC 2023
This covers most of map key image types and makes it possible to remove many external images.
Before this there was only a `fill` attribute that created a `<rect ... fill="...">`.
Now:
- `border` adds `stroke` to `<rect>`
- `casing` adds two lines above and below with `stroke`
- `line` adds a horizontal line in the middle with `stroke`
- it's possible to add `-width`, `-dasharray` and `-dashoffset` suffixes to `border`/`casing`/`line` to get `stroke-width` etc
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/4431
-- Commit Summary --
* Add border/casing/line attribute support to svg map keys
* Use border/casing/line in map keys
-- File Changes --
D app/assets/images/key/cyclemap/cycleway.png (0)
D app/assets/images/key/cyclemap/footway.svg (3)
D app/assets/images/key/cyclemap/motorway12.png (0)
D app/assets/images/key/cyclemap/pedestrian.svg (3)
D app/assets/images/key/cyclemap/primary12.png (0)
D app/assets/images/key/cyclemap/rail.png (0)
D app/assets/images/key/cyclemap/rail14.png (0)
D app/assets/images/key/cyclemap/secondary12.png (0)
D app/assets/images/key/cyclemap/track.png (0)
D app/assets/images/key/cyclemap/trunk12.png (0)
D app/assets/images/key/mapnik/bridge.svg (4)
D app/assets/images/key/mapnik/bridleway.png (0)
D app/assets/images/key/mapnik/building15.svg (3)
D app/assets/images/key/mapnik/building16.svg (3)
D app/assets/images/key/mapnik/cycleway.png (0)
D app/assets/images/key/mapnik/footway.png (0)
D app/assets/images/key/mapnik/glacier10.svg (3)
D app/assets/images/key/mapnik/glacier5.svg (3)
D app/assets/images/key/mapnik/motorway.png (0)
D app/assets/images/key/mapnik/rail12.svg (4)
D app/assets/images/key/mapnik/rail18.svg (4)
D app/assets/images/key/mapnik/track.png (0)
D app/assets/images/key/mapnik/tram15.svg (3)
D app/assets/images/key/mapnik/tunnel.svg (4)
D app/assets/images/key/opnvkarte/main_road11.svg (3)
D app/assets/images/key/opnvkarte/main_road13.svg (3)
D app/assets/images/key/opnvkarte/main_road15.svg (3)
D app/assets/images/key/opnvkarte/main_road17.svg (3)
D app/assets/images/key/opnvkarte/motorway13.svg (3)
D app/assets/images/key/opnvkarte/motorway15.svg (4)
D app/assets/images/key/opnvkarte/motorway17.svg (4)
D app/assets/images/key/opnvkarte/motorway8.svg (3)
D app/assets/images/key/opnvkarte/rail11.svg (4)
D app/assets/images/key/opnvkarte/rail15.svg (4)
M app/helpers/svg_helper.rb (32)
M app/views/site/key.html.erb (6)
M config/key.yml (78)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/4431.patch
https://github.com/openstreetmap/openstreetmap-website/pull/4431.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4431
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4431 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231223/e97acdea/attachment.htm>
More information about the rails-dev
mailing list