Comments (7)
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.
@herm - so the text will then be moved and not the underlying image - or am I misunderstanding?
from mapnik-reference.
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.
Okay, thank you. I will hold off on exposing in mapnik-reference until later on then.
from mapnik-reference.
Documentation is now available on the wiki: https://github.com/mapnik/mapnik/wiki/ShieldSymbolizer
from mapnik-reference.
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.
landed in ec739c8
from mapnik-reference.
Related Issues (20)
- Mention stability of symbolizers HOT 10
- Add ability to find latest applicable mapnik version HOT 4
- Missing cache-features attribute of Layer
- Not working with with node-mapnik >=3.4.10, mapnik v3.0.9 HOT 3
- Filter factor doc incorrect HOT 1
- 8.5.3 has not been tagged
- Abandon dynamic loading for browser contexts HOT 3
- Restore pull requests HOT 4
- Reading the documentation
- Support PolygonPatternSymbolizer's transform property
- Clarify margin documentation
- The site should link to this repository HOT 1
- Bug in reference.json concerning text { line-spacing } HOT 3
- Document color formats
- fix wording on marker-opacity HOT 1
- Failure at postinstall node generate.js HOT 4
- text-displacement seems to be missing HOT 2
- 3.1 entry for mapnik-reference HOT 2
- Add douglas-peucker simplify-algorithm
- Use semver ≥ 7 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapnik-reference.