[Mapserver-users] drawLegend() labels wrong position

Twan Kogels twan at twansoft.com
Thu Aug 14 05:04:25 PDT 2003


--=====================_16529125==_
Content-Type: text/plain; charset="us-ascii"; format=flowed

Hello,

I've got a little problem with the mapscript drawLegend() function, it goes 
oke, but the labels within the legend are not on the right spot. I've 
attached a example.

Here is the code which i use to generate my legend:
========
$lg=$map->legend;
$lg->set("width", 3000);
$lg->set("height", 3000);
$lg->set("keysizex", 20);
$lg->set("keysizey", 20);
$lg->set("outlinecolor", $map->addColor(255,255,0));
$legend_img=$map->drawLegend();
$legend_url=$legend_img->saveWebImage(MS_PNG,1,1,0);
=======

Am i doing something wrong?

Best regards,
Twan
--=====================_16529125==_
Content-Type: image/gif; name="legend.gif";
 x-mac-type="47494666"; x-mac-creator="4A565752"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="legend.gif"

R0lGODlhjACCAIMAAAAA/wDO/87Ozv8AAP//AP//////////////////////////////////////
/////yH5BAMAAAMALAAAAACMAIIAAAT/sMhJq7046827/2AojmRpnmiqrmzrvnAsz3QtEXiu77vt
/xNCJcARAo80o4RIzASUyKgLytQ8pdgWtdDEXLNglLLbHRag4XRoPClTiGi1vNiuW5rxuf5idLu5
N3uCGX1mhnmDgoVvhmeJj0FLjZKBkI9Cf4B2jpaJmBdkFIidaZ93m5ykewSZkm6jqlECAmetgK8d
s7QZs7EovaxOmpG5uxi9vibAG3+wFMjHxskjurM51TjWBNbIvd3G0AXVEt/TIeXou97qtOXk0hPr
4vDmHOnv8/j3+fjx4+P1QOyTl6/at3DQ0oULaI8dP4LrAALs97CdRYYeDPpLKJHcM3Aa/+fpqojx
A4+TJ0tiQeMslcojUITAwvEySkyXFmjWhCkKZwWdO38oGYpBZlAgRCvl9HlURlKmRlo2XRH151Km
U19U7WkVa1YtSsOmkvr1xFZiaMmWLWH0qlK1a0e07eoSbtw1UNF6vWt21FyxfEtAA/rxL8fAJAbn
sebyMGIRgzegWfgYsrFtuq5pyyaR48h37UCz+xzUsWOSFAdeLOiwNMiJpkH60+fQ4GrKJU9/nM2v
t7vOFdztjM0bte/a8FQf7Xzws0bbqGE7b50VgPXr2LNn/yC88gQAFcBvEJ+RtPfvFMCTv2D9fIr1
6jW0d38CfoH1FubTL0G+P4b4+/GHnv8E+KFXYIAf+EcgewsiOIJ4+BUIoYMPNjhgehZSmGCG94V3
oYYeTIjhiB2CuOGB9nFoonwlepjhgSsyiOKHMMYYXo0AfmhjcLTol1+LKu6Ij48e4ofbjr3UqOKR
NiY5i3XVQBklACGJNJpnV9Kz3Gq7/SaNcsp9NZGVt1FH0kLQddeUdLT1gxByPMbZ21QQwXlmmXPe
SRGdrT1HHWnA8ejlXQMUauihiCIqpAYDVNDoBo8uekGkBTRKqQWFSooBpZYyeqmmEnBaqaegYjpB
pJ+GOmqpFKB66qarsqrqrLG2Squsj176aa6yvlrrr6umqimvthYLLKjE+qqssJJ2aur/sr2qmqqr
yuJ6LLW3spoprLqW+tm2BDlbrQxM+nIRuKuJm+1uKpQbizSREgQss+5WBq9BA+BbaDWPModlm6xt
tJFn4jxCHJh9foncP1UebOYeCgMc0XRyijbxxbK5iWciEQfssQW6oWnnaV7WC0bHdeqpJ8KpZSwv
JMkxDOjMb76W8J0Ma2yyHCj1nEMaal4SHB1Am2cJFKHxYpeGSBesdLSNOX3M0hQqAc4xewlpdTxY
U+3g1h6BDBioRiQndtY7lj302l4jqPYza6Nt49tcwz22pkJo+aVerOZ9wdV8l+r32VLLHeM2vBRu
+IpMJh04uVoGRJk3irdNTeT1TK6OSls17GxwcwJwlpnooZMpsEU0Zzkw5uZu/KbEeLLsseekDLo6
lxrnKTvtndi+Z55W/r476++6ftE+xQk/8saS+57678EDHyjoGEUAADs=
--=====================_16529125==_--




More information about the MapServer-users mailing list