This class represents a map scale, a ratio of a distance on the map to the corresponding actual distance.
More...
This class represents a map scale, a ratio of a distance on the map to the corresponding actual distance.
For example: a map scale of 1:50000 means that 1 centimeter on a map corresponds with 500 meters on the ground. This class gives a natural ordering to map scales, from zoomed out to zoomed in. When a part of the API takes an ordered collection as input, it must be ordered according to this natural ordering (unless stated otherwise). In order for a Map instance to interpret MapScale values correctly, it needs to know the DPI (see Map::getDpi) value of the screen on which it is rendered. See also the related article
- Warning
- C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::MapScale.
Creates a map scale from a denominator value.
For example when using 1:50000 as map scale, the denominator is 50000.
denominator
the scale denominator.
a map scale that corresponds to 1:denominator
luciad::InvalidArgumentException
when the denominator is negative.
- Warning
- C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::MapScale::fromDenominator.
Creates a new MapScale which is zoomed in with a given factor.
For example, when applying this method on a 1:50000 scale, with a factor or 2, the resulting map scale will be 1:25000.
factor
the factor using which to zoom in
a new map scale that is zoomed in using the given factor.
- Warning
- C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::MapScale::zoomIn.
Creates a new MapScale which is zoomed outn with a given factor.
For example, when applying this method on a 1:50000 scale, with a factor or 2, the resulting map scale will be 1:100000.
factor
the factor using which to zoom out
a new map scale that is zoomed out using the given factor.
- Warning
- C# documentation translation is incomplete. You can find more information in the C++ documentation for luciad::MapScale::zoomOut.