I think we may of finally got most of the all the bugs out of the mapguide implementation with Openlayers.
This little screen shot, without any pink tiles, is the result of all the bits below working together..
If you doing much with Openlayers and Mapguide, I think you will find both these patches useful
- Mapguide dynamic overlays fails
- A Mapguide Tiled map with all the co-ordinates correct :)
var metersPerUnit = 111319.4908; //value returned via MG API
turns out that's all required in order for a mapguide tiled layer to display with correct co-ordinates, aside from extents and scales
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; - A Sheboygan example of Mapguide tiled map, Untiled map and untiled map as Overlay all in one map, which makes a good starting point
- Fusion fix for the Mapguide error:The value cannot be less than or equal to zero.
- Finally a sainty bug against mapguide, "The value cannot be less than or equal to zero." is meaningless with out context
Life should be a little bit easier for anyone using Mapguide and Openlayers now!
No comments:
Post a Comment