On Dec 17, 2010, at 3:49 AM, Harald MAYER wrote: > dear mapnik-users, > this being my first email to this list, a short introduction:
Hi Harald, welcome! > my name is harald mayer, i'm working as web manager at the austrian section > of the medical humanitarian organization Médecins Sans Frontières / Doctors > without Borders (MSF). > after producing a series of online maps (like for example > http://maps.msf.at/index.php?map=sudan2010) mainly based on the excellent > (mapnik-rendered) tiles from mapbox.com, i recently started using mapnik with > the intention to produce high-res, printable versions of our (kml-based) > online-maps (see the first result here: > http://maps.msf.at/mapnik/msf_sudan_2010.jpg). Great, awesome to see you leveraging Mapnik and the MapBox styles for this work. > > to visualize our project-locations in a similar way as in our "online-maps", > i use ShieldSymbolizers. the problem i face is the exact positioning of > those: depending on the line-count of the text that the ShieldSymbolizer > renders, the positioning of the label changes, somehow overruling the > settings made with the "vertical_alignment"-attribute. i tried to illustrate > the problem with the attached image: all ShieldSymbolizers used in this test > have the same value for "dy" and show results for "vertical_alignment" > bottom, top and middle; as you can see, the label is positioned in a > different way depending on the line-count of the text, despite same settings > for "vertical_alignment". Okay. Sounds tricky and I would need some time to investigate further to get a deeper sense of the problem. I'm on the road currently, but I can try to dig more into this to give you suggestions next week. > another problem i have is that i can't figure out how to use the attribute > "shield_displacement"; It is only available in trunk and via xml is 'shield_dx' and 'shield_dy' (http://trac.mapnik.org/browser/trunk/src/load_map.cpp#L1390). It is an urgent need to get better docs up showing which versions support which parameters. I also am working on this patch (http://trac.mapnik.org/ticket/110) which will give you more feedback when you have misspelled or otherwise used a parameter name that has no effect for your given Mapnik version. > i've tried: > shield_displacement="10,10" > shield_displacement="(10,10)" > shield_displacement="10" > in my mapnik-XML, but none of those showed any effect. can someone point me > in the right direction? > thanks & kind regards, > harald > > > <shieldSymbolizerTest.png><shieldSymbolizerTest.xml>_______________________________________________ > Mapnik-users mailing list > [email protected] > https://lists.berlios.de/mailman/listinfo/mapnik-users
_______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

