Changes between Version 1 and Version 2 of CodeSamples/PHP/MPUCalculator


Ignore:
Timestamp:
Sep 6, 2013 8:34:45 AM (4 years ago)
Author:
jng
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CodeSamples/PHP/MPUCalculator

    v1 v2  
    44
    55== 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'''
    68
    79The 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.