<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Ok, that's a good step in the right
direction. But since I stated that I'm using mod_tile/renderd,
how does one configure things to use that?<br>
<br>
I see that mod_tile's renderd.py invokes mapnik.render(), but
without the 3rd argument which is the scale factor. Or is there a
new version of mod_tile that I need to pick up? Checking further
reveals that gen_tile..cpp invokes agg_renderer, but again without
that optional 3rd parameter of the scale factor.<br>
<br>
I don't know which of these two modules is actually invoked by
apache when tiles are requested, but since neither one does
scale_factor, this looks like a mapnik feature that's not yet used
by mod_tile/renderd?<br>
<br>
Lynn (D) - KJ4ERJ - Author of APRSISCE for Windows Mobile and
Win32<br>
<br>
On 5/31/2013 12:47 PM, Dane Springmeyer wrote:<br>
</div>
<blockquote
cite="mid:63AFE29B-E81E-4D92-B53D-7444449F78CC@dbsgeo.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
Mapnik supports an optional `scale_factor` argument for rendering
that enables the 2x scale up (or any variable size) without any
modifications to your stylesheet.
<div><br>
</div>
<div>See documentation at <a moz-do-not-send="true"
href="https://github.com/mapnik/mapnik/wiki/Scale-factor">https://github.com/mapnik/mapnik/wiki/Scale-factor</a></div>
<div><br>
</div>
<div>Dane</div>
<div><br>
</div>
<div> </div>
<div>
<div>
<div>On May 31, 2013, at 8:12 AM, Lynn W. Deffenbaugh (Mr)
<<a moz-do-not-send="true"
href="mailto:ldeffenb@homeside.to">ldeffenb@homeside.to</a>>
wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<div bgcolor="#FFFFFF" text="#000000"> I'm running my own
Tile Server (mod_tile/renderd created from packages as
described at <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="http://switch2osm.org/serving-tiles/building-a-tile-server-from-packages/">http://switch2osm.org/serving-tiles/building-a-tile-server-from-packages/</a>
and would like to serve up a new set of tiles with larger
font sizes for higher resolution displays.<br>
<br>
I read <a moz-do-not-send="true"
class="moz-txt-link-freetext"
href="https://help.openstreetmap.org/questions/8467/font-size-and-adding-scale-to-map">https://help.openstreetmap.org/questions/8467/font-size-and-adding-scale-to-map</a>
which describes the textsymbolizer element in osm.xml, to
whit:<br>
<br>
<blockquote type="cite">
<table style="width:100%;">
<tbody>
<tr>
<td style="width:30px;vertical-align:top">
<div class="vote-buttons"> <a
moz-do-not-send="true" id="post-8472-upvote"
title="This post is useful (click again to
undo)" class="ajax-command post-vote up "
href="https://help.openstreetmap.org/vote/8472/up/"
rel="nofollow"> </a>
<div id="post-8472-score" class="post-score"
title="current number of votes"> 3 </div>
<a moz-do-not-send="true"
id="post-8472-downvote" title="This post is
not useful (click again to undo)"
class="ajax-command post-vote down"
href="https://help.openstreetmap.org/vote/8472/down/"
rel="nofollow"> </a> </div>
</td>
<td>
<div class="item-right">
<div class="answer-body">
<p>The font size comes from the style file <em>osm.xml</em>.
This includes several lines on the form "<em><code><textsymbolizer
name="name" fontset_name="bold-fonts"
size="11"/></code></em>". You can
edit the <em>size</em> parameter in the
wanted areas to generate a new style with
other font sizes.</p>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</blockquote>
<br>
But there's a TON of textsymbolizer's that would need to
be edited. Cloudmade's tile servers support an embedded
doubler in their tile URL as described at <a
moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://developers.cloudmade.com/projects/tiles/documents">http://developers.cloudmade.com/projects/tiles/documents</a><br>
<br>
<blockquote type="cite">To get double resolution tiles use
<strong>@2x</strong> suffix: 997@2x - this will improve
map look for iPhone 4, Motorola Milestone, etc.</blockquote>
<br>
Does anyone know how they do that? Is there a way to
replace the textsymbolizer element size attributes with a
variable (say Size11, Size8, SizeN) so that I can simply
clone the style and edit all of the sizes in a single
place? Then I could do a 1.5, 2, 4, or whatever by simply
editing the sizes where the variables are declared instead
of every single textsymbolizer element.<br>
<br>
Any/all help would be appreciated to accomplish label font
scaling in the rendering chain with minimal manual editing
work for each scale that I support.<br>
<br>
Lynn (D) - KJ4ERJ - Author of APRSISCE for Windows Mobile
and Win32<br>
<br>
</div>
_______________________________________________<br>
dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.openstreetmap.org/listinfo/dev">http://lists.openstreetmap.org/listinfo/dev</a><br>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>