creating scale bar

Dylan Keon keon at NACSE.ORG
Tue Sep 7 10:14:10 EDT 2004


Ahmet,

First, make sure you have defined a SCALEBAR block in your mapfile (or
via mapscript).

// create scalebar
$scale_img = $map->drawScaleBar();
$scale_url = $scale_img->saveWebImage();

Then call it in your HTML:

<img src="<?php echo $scale_url?>">

--Dylan


temiz wrote:
> hello
>
> how can I create scale bar with phpmapscript ?
>
> regards
>
> Ahmet Temiz



More information about the mapserver-users mailing list