...
...
Note |
---|
This documentation describes the mapping components provided as part of Weave 2.3, for changes in Weave 2.4 see BIRT Map Updates for Weave 2.4 |
...
You can resize the map using the handles directly within the design or you can set the width and height exactly by editing the advanced properties of the map
...
Note |
---|
Currently the map size must be set to specific units (cm, pixels, etc) and can not be set as a percentage. |
...
The first is the colour to use to draw highlighted features (this is different from the colour used for drawing selections). This is used inĀ the situation when a single feature within a selection needs to be highlighted in a BIRT report (i.e. when when a map is contained within a report that will generate a map image for each selected feature).
The second used when the map is embedded in a dataset and will be covered later.
...
The Location setting for the map determine where the map will be centred and is used in conjunction with the Scale setting to determine what area of the world the map will cover.
There are three choices:
Value | Description |
---|---|
Original | Centre on the area that the user was viewing. |
Selection | Centre on the current selection. |
Specific | Match an area entered directly. |
...
Scale settings
The Scale setting for the map determine what scale the map will be generated at and are used in conjunction with the Location settings to determine the actual area of the world the map will cover.
There are three choices:
Value | Description |
---|---|
Original | Match the scale that the user was viewing. |
Selection | Set the scale to ensure the map covers at least the current selection. |
Specific | Set the scale directly. |
...
Setting a map scale
Like the DPI setting the scale setting, when set to Specific, allows its value to be set from a formula.
...
One option when using a formula is to set the formulas value from a parameter that's automatically set by Weave each time a report is generated, the name of this parameter is 'client.scale' and the value for this parameters is always set to the users current map scale at the time of the report generation. So, by setting the Scale formula to
No Formatcode |
---|
params['client.scale'] |
you can ensure that the map in the report will be generated at the same scale that the user was originally using.
...
The parameter will be named scale
, if the map doesn't have a name, or <name>.scale
if the map does have a name.
The numeric value is directly available as params["scale"]
(or params["<name>.scale"]
) or a formatted string value available using params["scale"].displayText
(or params["<name>.scale"].displayText
).
Layers Settings
...
The layers settings allow you to alter the layers that are displayed on the map.
...
Finally by checking the Display only shown layers check box you can provide a list of exactly the layer ids that should be turned on.
...
Layer ids for showing/hiding map layers
...
Info |
---|
In reality unless you specify a map engine id explicitly each layer id is actually suffixed with "/*", which will match any map engine id. This will effectively remove all layers matching the specified name from all map engines. So using a layer id of "property" is the same as using "property/*". |
...