Map item enables you to visualize an aggregated business data in a geographical manner.
The image below show the basic elements of a map:
Fig.1 Map Item showing a PointMap series
The parallels and meridians (named also latitude and longitude lines) represent an imaginary grid over the Earth's surface thus forming the map coordinate system, called graticule. By combining longitude and latitude measurements, any location can be determined. The units of measurement for geographic coordinates are degrees (°), minutes ('), and seconds ("), but for simplicity the Map item uses their decimal representation (decimal degrees).
When using the Mercator projection, the meridians are distributed equally along the coordinate system. However, when using this projection, the latitude lines are non-linear, hence the parallels are placed on a non-constant distance from each other. That's why the Map item gives the user the option to change the step at which the parallels/meridians are drawn. When not set, the latitude and longitude lines are drawn based on the given extent and scale factor.
Data points are produced by the defined map Series groups and GeoLocation groups. Their position is uniquely identified by the latitude/longitude coordinates, returned either from a Location Provider or from an expression. The data point can display one or more measures - for example, when using a Point Map series, the Size property could represent some scalar value.
Data point labels are used to display the exact value represented by a data point. However, when the map has lots of data points fit on a small plot area, the data point labels make it more difficult to read so they are created invisible by default.
Series represent a number of data points that show individual measurements. The series in the Map item can be divided in two major groups depending on the groups they use and the data points they display.
The first group uses GeoLocationMapGroup to obtain a set of latitude/longitude coordinates or to query the define a Location provider in order to determine its data points position on the map. The PointMap, PieMap and ColumnMap series fall in that group, since they present similar data points, each one on a single location on the map. These series are called LocationMapSeries.
However, the ShapeMapSeries belongs to a second group that uses a set of coordinates to determine tha shape of the data point itself. In this case no LocationProvider is used, neither a GeoLocationMapGroup, because the data points are not determined by a single location on the map surface.
The Map series can share existing GeoLocation, ShapeMap and Series groups.
Although the Map series share common properties, a ShapeMapSeries can only use and share a ShapeMap groups. The LocationMapSeries (PointMap, PieMap and ColumnMap) can only use and share a GeoLocation groups.
The Map Title is a report item used to set a header over a report item. It could be moved to a various position for a better visual effect.
The Map Legend is a collection of legend items that are used to distinguish the map series. It has numerous styling and expression capabilities that are resolved in a hierarchical way as as explained in the Style Inheritance and Overriding documentation article.
The MapScaleLegend shows the scale of the current map extent, measured at the middle between its minimum and maximum latitude. The scale is calculated using the Haversine formula , assuming the Earth is a perfect sphere.
Formatting the Scale Legend
The ScaleLegend allows the user to see the map scale in metric, imperial or both units, depending how the ScaleUnits property is set. The value of the shown scale depends on the Size property - the processing engine calculates the nearest round value that can be shown on the scale, using all the available width. The Height property in conjunction with VerticalAlign property determines how the scale will be positioned vertically. If the Size.Height is set to a very small value (e.g. 0.1), the ScaleLegend will grow vertically to display its content.
Styling the Scale Legend
Similar to the GraphSeries' LegendItem, the MapScaleLegend provides two styles for more precise styling, named Style and ItemStyle. The ItemStyle is used to set the styling of the mark line and the label. The LineStyle, LineWidth and the LineColor properties define how the scale line would look like. The borders around the line are defined by the BorderColor, BorderStyle and BorderWidth properties. The label styling is determined by the Color and Font properties The Style property sets the styling of the container item, including the background color, borders and the vertical alignment of its content.
The projection is the representation model used to project the globe or celestial sphere on a surface. The projected coordinate system is defined on a flat two-dimensional surface and it is always based on a geographic coordinate system that represents a sphere or spheroid. In such a coordinate system, the locations are identified by a x/y coordinates with the origin at the center of the grid. Each position has two values that reference it to that central location - one for the horizontal and one for the vertical position. The map item supports the following projections:
Mercator Projection - a conformal map projection of which the meridians are drawn parallel to each other and the parallels of latitude are straight lines whose distance from each other increases with their distance from the equator.
Map extent is a rectangular map area defined by geographical coordinates. It consists of 4 fields defining the sides of the extent area: LatitudeMax - usually the top side of the area rectangle, LatitudeMin - the bottom side, LongitudeMin - the left side, LongitudeMax - the right side of the area rectangle. The extent is displayed in the map viewport and can be defined in three ways:
automatically - by the latitude and longitude coordinates of the data points. These coordinates can be retrieved by geocoding or set from the data source.
explicitly - when the extent fields are set directly using the Property grid. If the defined extent is not conformant or has an invalid values, it will be automatically fixed when the map is panned or zoomed.
from the viewport - when the map is panned or zoomed in/out, the extent is being recalculated and its new values are populated in the Property grid.
The Map extent can be reset to its automatically calculated bounds by right-clicking on the map outside the plot area and selecting Reset Map Extent from the context menu. This will restore its Latitude and Longitude values to its default state.
Tile Provider is used to request and download the imagery data for the specified map extent. This data is downloaded on a small images called tiles that form a background image, which can be used to give a better appearance of your maps.
The Location Provider matches the addresses or locations with geographical coordinates (latitude and longitude). It is used in conjunction with the GeoLocation groups which is used to provide the geocoding request in order to retrieve the data point coordinates. The more detailed information is used in the query, the more accurate the results will be.