MapCenterPixelOffset Property |
Namespace: Telogis.GeoBase
CenterPixelOffset allows you to treat the Map object conceptually as an infinitely large map. The map is centered around the Center point. GetMap returns a portion of the infinite map, Width wide and Height high. By setting CenterPixelOffset the portion of the underlying map that is rendered by GetMap can be controlled. This allows you to request several smaller maps from the same Map object and then reconstruct a larger map from these tiles. This is especially useful in web applications.
Not valid on GeoStream maps, which can already be treated this way.
Consider an underlying Map object. Overlaid are three maps, each generated by setting the Width and Height to 100 each, then adjusting the CenterPixelOffset for each. The first map (Map 1) has the CenterPixelOffset set to (0,0), so it renders a map exactly as normal, centered around the underlying map's Center.
The second map (Map 2) has the same Center as Map 1 but has CenterPixelOffset set to (-100,0) it renders an area to the left of Map 1.
Similarly, Map 3 is positioned below and to the left Map 1 as it has the same Center but a CenterPixelOffset of (-100,100) - a sideways shift of 100 pixels and 100 pixels lower.