1 Parameters
Structure
The main SQL box gmap contains the information regarding the type of map and the center of it, the layer or layers contain the different elements to be displayed on the map.
1.1 Main box

wic_jrep_box_sqlgmap | |
---|---|
Label | Description |
Id. | Box Id. |
Zoom Map | Zoom Map.
|
Style | Map style |
Center | Statement of the map centering
|
gmap_center_stmt_backup | |
Label | Symbology box label
|
Width | Symbology box width (px) |
Height | Symbology box height (px) |
Created by |
|
Date created |
|
Modified by |
|
Date updated |
|
1.1.1 Map style
The maps can be customized in their appearance.
For this there are parameters such as type, color, saturation, luminosity ... Which can be defined in the master of map styles.

The nuances, saturation and luminosity model.
In the maps with styles, the nuance, saturation and luminosity (HSL) model is used to indicate color within the operations of style parameters. These operations to define color are common in graphic design. Hue indicates the basic color, saturation indicates the intensity of that color, and lightness indicates the relative amount of white or black in the constituent color.

While hue supports a HTML hexadecimal color value, it only uses that value to determine the basic color, not its saturation or brightness, which are indicated separately.
RGB hue values consisting of equal parts of red, green and blue, such as "# 000000 (black) and" #FFFFFF "(white) and all pure gray shades, do not indicate a hue, since none of those values indicate an orientation in the HSL coordinate space. To indicate black, white or gray, you must completely eliminate saturation (add the value -100) and adjust lightness.
In addition, by modifying existing features that already have a color scheme, changing a value as hue does not change its existing saturation or lightness.
All the documentation on the style of maps Here
Online style editor Here
Example

1.1.2 SQL statement
The SQL statement that contains the center of the map is defined in the main box
The center of the map can be a point or a set of points depending on the content of the layers.
Normally the sentence that determines the center, will be very similar to the one contained in the series to center the map in the same place where points are being placed.
Here are some examples of sentences to center the map.
You want to show the center of a specific client, given the GPS coordinates.
<select> <columns> 'POINT(' || REPLACE(customer.gps_lon,',','.') || ' ' || REPLACE(customer.gps_lat, ',','.') || ')' zone </columns> <from table='customer' /> <where> customer.customerid = '#customerid' </where> </select>
If the database is geometric, the same sentence would be:
More information about the geometric module in Informix here...
<select> <columns> <geo.asWkt> <geo.aggrMbr> <geo.point2D> <coords>'||gps_lon||' '|| gps_lat||'</coords> <srid>4</srid> </geo.point2D> </geo.aggrMbr> </geo.asWkt> </columns> <from table='customer' /> <where> customer.customerid = '#customerid' </where> </select>
1.2 Layers

The layers can contain a link to address an object, in the condition you can use the columns of the SQL statement of the layer.
This link appears when clicking on the icon on the map.

wic_jrep_box_sqlgmap_layers | |
---|---|
Label | Description |
Id. | Box Id. |
Map Id | |
Order | Layer ordering |
Label | Layer label
|
Category | Layer category
|
Decimal places | Decimal places used in coordinates
|
Minimum zoom | Minimum zoom to enable the layer
|
Maximum zomm | Maximum at which the layer is enabled
|
Symbology | Layer symbology |
Points render | Data points render method
|
Lines render | Data lines render method
|
Polygon render | Data polygon render method
|
Hidden on load | Layer hidden on load
|
Tracing | Statement of the layer tracking
|
Layer | Statement of the layer
|
layer_track_stmt_backup | |
layer_stmt_backup | |
Expression | Link enabling expression |
Object | SQL object code |
Condition | Link condition |
Width | Window width (px) |
Height | Window height (px) |
Info window | Content in the inf window (HTML, XSQL-Script) |
Created by |
|
Date created |
|
Modified by |
|
Date updated |
|