Hello,

I'm trying to create a border around my map, but can't figure out how to
do with the map, buffer, and renderer.

                mapnik::Map map(width, height);
                mapnik::Image32
buf(map.getWidth()+2*border,map.getHeight()+2*border);
                mapnik::agg_renderer<mapnik::Image32>
ren(map,buf,border,border);

But this doesn't have the expected behavior.  I thought it would shift
the image and create a border all around the image, but it just creates
the space on the left and bottom instead.  I tried various combinations
of sizes, varying the map size and image size... but couldn't get what I
wanted.   

In fact, with the offset variables removed from the above I get the same
result so it looks like the offset inputs are having no effect at all
and that my border is simply due to my image being larger then my map.

So either this is a bug or I have misunderstood what the offset
parameters are for.

matt
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to