private SetOriginAndResolution ( double currentResolution, |
||
currentResolution | double | |
currentOrigin | ||
resetTransforms | bool | |
return | void |
private void SetOriginAndResolution(double currentResolution, Point2D currentOrigin, bool resetTransforms)
{
this.origin = currentOrigin;
this.mapResolution = currentResolution;
foreach (UIElement element in this.layerCollectionContainer.Children)
{
LayerContainer container = element as LayerContainer;
container.OriginX = currentOrigin.X;
container.OriginY = currentOrigin.Y;
container.Resolution = currentResolution;
if (resetTransforms)
{
container.ResetGeometryTransforms();
}
}
}