Git Product home page Git Product logo

Comments (7)

herm avatar herm commented on May 29, 2024

It is supported, however the function behaves exactly the same as for TextSymbolizers. It modifies dx and dy values but not shield-dx/dy. It also influences {horizontal,vertical}-alignment when set to "auto" which moves marker a bit. Modifying shield-dx/dy is not possible atm.

This is a useful example:
<ShieldSymbolizer face-name="DejaVu Sans Book" size="16" placement="point" dx="5" dy="16" file="../../data/svg/crosshair16x16.svg" horizontal-alignment="middle" vertical-alignment="middle" placement-type="simple" placements="N,S">[name]</ShieldSymbolizer>

from mapnik-reference.

springmeyer avatar springmeyer commented on May 29, 2024

@herm - so the text will then be moved and not the underlying image - or am I misunderstanding?

from mapnik-reference.

herm avatar herm commented on May 29, 2024

Correct.
However I don't fully understand ShieldSymbolizer behavior. I'm trying to produce a test case where unlock-image="true" produces a different output from unlock-image="false", but I was not successful yet. Also it looks like both code paths are always producing the same results.

I think we should start by writing documentation for ShieldSymbolizer and make sure code behaves as described in the documentation.

from mapnik-reference.

springmeyer avatar springmeyer commented on May 29, 2024

Okay, thank you. I will hold off on exposing in mapnik-reference until later on then.

from mapnik-reference.

herm avatar herm commented on May 29, 2024

Documentation is now available on the wiki: https://github.com/mapnik/mapnik/wiki/ShieldSymbolizer

from mapnik-reference.

springmeyer avatar springmeyer commented on May 29, 2024

TODO: get this branch merged: https://github.com/mapnik/mapnik-reference/commits/shield-placements.

Downstream issue http://support.mapbox.com/discussions/tilemill/6154-placements-placement-type-and-transform-attributes-of-a-shield-symbolizer

from mapnik-reference.

springmeyer avatar springmeyer commented on May 29, 2024

landed in ec739c8

from mapnik-reference.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.