|
||||
[maplab-users] How to output scale from gmapfactoryPaul Spencer pgs@magma.caMon, 16 Sep 2002 13:01:58 -0400
|
Steven, I think there are several php_mapscript calls that cause the scale to be calculated. You can try inserting a call to preparequery() or setextents() using the current extents just before you display the scale. Cheers, Paul woodbri@swoodbridge.com wrote: > Hi, > > I would like to print the scale on my map page generated by > gmapfactory. I tried to add > > <td colspan=3 align=left> > <?php printf("SCALE 1:%d<BR>\n", intval($oSession->oMap->scale)); ?> > </td> > > to app_contents.php just before the credits, but scale is zero, > presumably because it is not set until drawmap() is called. > > Any ideas? > > -Steve > _______________________________________________ > Maplab-users mailing list > Maplab-users@dmsolutions.ca > http://lists.dmsolutions.ca/mailman/listinfo/maplab-users > -- Paul Spencer Applications and Software Development DM Solutions Group
This archive was generated by Pipermail. |
MapTools.org -- Hosted by DM Solutions Group |