geostyler / geostyler-legend

Small library to render map legends with OpenLayers and d3
BSD 2-Clause "Simplified" License
12 stars 9 forks source link

Add support for raster legends #378

Closed weskamm closed 2 years ago

weskamm commented 2 years ago

This adds support for generating legends that contain raster images as source, e.g. like an GetLegenGraphic Image.

The images will be appended into the SVG container.

The following example shows the output of this addition which will be added to the inkmap library (https://github.com/camptocamp/inkmap) in an upcoming PR so that it supports printing of legends:

image

@geostyler/devs please review

weskamm commented 2 years ago

Thanks for review!