You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@baremaps.apache.org by "bchapuis (via GitHub)" <gi...@apache.org> on 2023/06/09 15:41:27 UTC

[GitHub] [incubator-baremaps] bchapuis opened a new issue, #692: Add openstreetmap patterns to the map

bchapuis opened a new issue, #692:
URL: https://github.com/apache/incubator-baremaps/issues/692

   The openstreetmap-carto style applies patterns to features.
   
   https://github.com/gravitystorm/openstreetmap-carto/tree/master/symbols/generating_patterns
   
   The svg files corresponding to these patterns could be converted to sdf sprites and added to the map. The idea would be to keep these sprites independant of the color, hence enabling the user to customize the map to a greater extent.
   
   Due to license imcompatibilities, the scripts used to generate the sprite are not part of baremaps. However, we could integrate the resulting file in the basemap.
   
   https://github.com/bchapuis/openstreetmap-icons


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@baremaps.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-baremaps] leonardcser commented on issue #692: Add openstreetmap patterns to the map

Posted by "leonardcser (via GitHub)" <gi...@apache.org>.
leonardcser commented on issue #692:
URL: https://github.com/apache/incubator-baremaps/issues/692#issuecomment-1602487293

   Currently Maplibre does not allow to change the color of patterns from an SDF format or any format. The color must originate from the image. As mentioned in the documentation, the property `paint -> fill-pattern` overrides `paint -> fill-color`:
   
   https://maplibre.org/maplibre-style-spec/layers/#paint-fill-fill-color
   
   The property `symbol -> icon-color` is also not compatible with `paint -> fill-pattern`.
   
   A possible solution would be to create a script that generates SVG files from the `theme.js` and are then used as assets with the `paint -> fill-pattern` property. The tricky part would be to make this work with quick reload in development mode.
   
   This incompatibility with `paint -> fill-pattern` and `paint -> fill-color` also implies that a layer that has patterns must be split into two layers, one for fill color and the other one for the pattern.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@baremaps.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-baremaps] leonardcser closed issue #692: Add openstreetmap patterns to the map

Posted by "leonardcser (via GitHub)" <gi...@apache.org>.
leonardcser closed issue #692: Add openstreetmap patterns to the map
URL: https://github.com/apache/incubator-baremaps/issues/692


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@baremaps.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org