Click or drag to resize

MapCenterPixelOffset Property

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Used to line up tiles. Sets an offset Point, in pixels, for the center of this Map tile, relative to the Center point of the center Map tile.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public Point CenterPixelOffset { get; set; }

Property Value

Type: Point
Remarks

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.

Examples

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.

See Also