[mapguide-users] scale bar always says Meters
Chris Gountanis
cgountanis at mpower-tech.com
Wed May 30 16:35:27 EDT 2007
In the code that creates the plot you need to change something. US-English
means Feet. For some reason the constants don't work anymore.
layout = new MgLayout(layoutRes, "Title Goes Here", "US-English");
Chris
-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Jon Rizzo
Sent: Wednesday, May 30, 2007 3:29 PM
To: mapguide-users at lists.osgeo.org
Subject: [mapguide-users] scale bar always says Meters
Hello,
I have created a page that generates a DWF file of the current map. The
map's units are *XY-IN* (Arbitrary X-Y Coordinates (U.S. Survey Inches)).
In the routine that generates the plot, I am creating an MgPlotSpecification
with the units MgPageUnitsType.Inches which I pass in the call to
GeneratePlot. I specified a scale of 120, so the resulting plot should be
shown as 1" = 10' or 1" = 120". However, when the plot is generated, the
scale bar always shows up in Meters. Is there any way to fix the scale bar
to show values that make sense for a non-metric map?
Jon
--
View this message in context:
http://www.nabble.com/scale-bar-always-says-Meters-tf3842795s16610.html#a108
81997
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
More information about the mapguide-users
mailing list