Changes between Version 1 and Version 2 of CodeSamples/PHP/MPUCalculator
- Timestamp:
- 09/06/13 08:34:45 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CodeSamples/PHP/MPUCalculator
v1 v2 4 4 5 5 == Calculating meters-per-unit == 6 7 '''NOTE: As of MapGuide Open Source 2.6, [wiki:MapGuideRfc134 the CREATERUNTIMEMAP operation in the mapagent] can return this value for you, thus it is no longer necessary to use this script for the purpose of obtaining this value for MapGuide 2.6 onwards''' 6 8 7 9 The meters-per-unit is a crucial value needed for calculating scales and setting up appropriate parameters for rendering. If you are using the AJAX/Fusion viewers, this value is automatically calculated for you, but is not accessible via methods in the MgMap class. If you are setting up a simple MapGuide viewer with [http://www.openlayers.org OpenLayers] or are setting up a tiling run with MgCooker using the official method, you need to have this value defined.