![]() |
LuciadCPillar C# 2024.1.06
|
Builder
to create a Map
.
More...
Public Member Functions | |
Luciad.Maps.Map.Builder | BackgroundColor (System.Drawing.Color color) |
Configures the background color of the map. More... | |
Luciad.Maps.Map | Build () |
Builds the Map for the configured settings. More... | |
Luciad.Maps.Map.Builder | DisplayScale (double displayScale) |
Specifies the display scale to allow the renderer to scale the graphics on high DPI displays. More... | |
void | Dispose () |
Luciad.Maps.Map.Builder | Dpi (double dpi) |
Sets the DPI value that will be used to interpret map scales. More... | |
Luciad.Maps.Map.Builder | LayerList (Luciad.Layers.LayerList layerList) |
Sets an initial layer list to use. More... | |
Luciad.Maps.Map.Builder | MaxMemoryUsageHint (double cpuMemory, double gpuMemory) |
A hint about the memory consumption allowed by the map. More... | |
Luciad.Maps.Map.Builder | Reference (Luciad.Geodesy.CoordinateReference reference) |
Sets the reference for this Map . More... | |
|
inline |
Configures the background color of the map.
This parameter is optional. Not specifying one will pick a default color. In 3D, the atmospheric effect has priority over the background color.
color | the color that is used to render the map background. |
|
inline |
|
inline |
Specifies the display scale to allow the renderer to scale the graphics on high DPI displays.
See Map.DisplayScale
for more information.
displayScale | the display scale. A value of 1.0 corresponds with a display scale of 100%. |
|
inline |
|
inline |
Sets the DPI value that will be used to interpret map scales.
See Map.Dpi
for more information.
dpi | the dpi |
|
inline |
Sets an initial layer list to use.
Note: LayerList
instances and the layers in them can not be shared with another Map
.
This parameter is optional. Not specifying one will create a new, empty, instance.
layerList | the initial layer list to use. Cannot be null . |
System.ArgumentNullException | when the layer list is null . |
|
inline |
A hint about the memory consumption allowed by the map.
These hints only apply to internal data managed by the map, not to any user data present in the application.
By default, the limits are 500 MB for CPU and 1000 MB for GPU.
This can help prevent the application from crashing. If you experience such behavior, try reducing both CPU and GPU memory from the default values. Alternatively, if memory is not a problem, pushing those values higher can improve caching efficiency.
Notes:
cpuMemory | a hint for the maximum CPU memory usage, defined in MB. |
gpuMemory | a hint for the maximum GPU memory usage, defined in MB. |
|
inline |
Sets the reference for this Map
.
This parameter is optional. The default is the reference with id EPSG:4978.
Only projected and geocentric references are allowed.
reference | the reference of this Map , cannot be null . |
System.ArgumentNullException | when the reference is null . |