No subject


Tue Feb 5 00:10:18 EST 2008


       var metersPerUnit = 111319.4908;  //value returned from mapguide
        var inPerUnit = OpenLayers.INCHES_PER_UNIT.m * metersPerUnit;
        OpenLayers.INCHES_PER_UNIT["dd"] = inPerUnit;
        OpenLayers.INCHES_PER_UNIT["degrees"] = inPerUnit;
        OpenLayers.DOTS_PER_INCH = 96;

it seems both OpenLayers.INCHES_PER_UNIT and OpenLayers.DOTS_PER_INCH are
global settings.

I doubt if two different layers, such as WMS and MapGuide are added to
Openlayers Map, the above settings will influence both layers. but it seems
the settings shouldn't be changed for WMS?

??
-- 
View this message in context: http://www.nabble.com/OpenLayers.DOTS_PER_INCH-as-global-setting-seems-shouldn%27t-be-changed-just-for-only-mapguide-layer-while-other-layers-added-together-tp19861382p19861382.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list