The type of SQL-GMAP box is thought to represent data on a map, such as routes, positions. The map can contain several layers to activate or hide map data.

1 Parameters

Structure

Loading...

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.

  • Default: 6
  • Values:
    • -1: Auto.
    • 0: .
    • 1: 1.
    • 2: 2.
    • 3: 3.
    • 4: 4.
    • 5: 5.
    • 6: 6.
    • 7: 7.
    • 8: 8.
    • 9: 9.
    • 10: 10.
    • 11: 11.
    • 12: 12.
    • 13: 13.
    • 14: 14.
    • 15: 15.
    • 16: 16.
    • 17: 17.
    • 18: 18.
    • 19: 19.
    • 20: 20.
    • 21: 21.
    • 22: 22.
    • 23: 23.
Style Map style
Center Statement of the map centering

  • Format: SQLCOND_EXPR
gmap_center_stmt_backup
Label Symbology box label

  • Case: Upshift
Width Symbology box width (px)
Height Symbology box height (px)
Created by

  • Default: USER
Date created

  • Default: CURRENT
Modified by

  • Default: USER
Date updated

  • Default: CURRENT

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.

Copy
<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...


Copy
<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

  • Case: Upshift
Category Layer category

  • Case: Upshift
Decimal places Decimal places used in coordinates

  • Values:
    • 2: 2.
    • 4: 4.
    • 6: 6.
    • 8: 8.
    • 10: 10.
    • 12: 12.
    • 14: 14.
Minimum zoom Minimum zoom to enable the layer

  • Values:
    • -1: Auto.
    • 0: .
    • 1: 1.
    • 2: 2.
    • 3: 3.
    • 4: 4.
    • 5: 5.
    • 6: 6.
    • 7: 7.
    • 8: 8.
    • 9: 9.
    • 10: 10.
    • 11: 11.
    • 12: 12.
    • 13: 13.
    • 14: 14.
    • 15: 15.
    • 16: 16.
    • 17: 17.
    • 18: 18.
    • 19: 19.
    • 20: 20.
    • 21: 21.
    • 22: 22.
    • 23: 23.
Maximum zomm Maximum at which the layer is enabled

  • Values:
    • -1: Auto.
    • 0: .
    • 1: 1.
    • 2: 2.
    • 3: 3.
    • 4: 4.
    • 5: 5.
    • 6: 6.
    • 7: 7.
    • 8: 8.
    • 9: 9.
    • 10: 10.
    • 11: 11.
    • 12: 12.
    • 13: 13.
    • 14: 14.
    • 15: 15.
    • 16: 16.
    • 17: 17.
    • 18: 18.
    • 19: 19.
    • 20: 20.
    • 21: 21.
    • 22: 22.
    • 23: 23.
Symbology Layer symbology
Points render Data points render method

  • Values:
    • STANDARD: Standard.
    • MARKER_CLUSTERER: Marker clusterer.
    • HEATMAP: Heatmap.
    • GPSTRACK: GPS track.
    • GOOGLEPATH: Google path.
    • CIRCLES: Circles.
    • ANIMATED: Animated.
    • TIME_SLIDER: .
Lines render Data lines render method

  • Values:
    • STANDARD: Standard.
    • ANIMATED: Animated.
    • TIME_SLIDER: Time slider.
Polygon render Data polygon render method

  • Values:
    • STANDARD: Standard.
    • ANIMATED: Animated.
    • TIME_SLIDER: .
Hidden on load Layer hidden on load

  • Default: 0
  • Values:
    • 1: Yes.
    • 0: No.
Tracing Statement of the layer tracking

  • Format: SQLCOND_EXPR
Layer Statement of the layer

  • Format: SQLCOND_EXPR
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

  • Default: USER
Date created

  • Default: CURRENT
Modified by

  • Default: USER
Date updated

  • Default: CURRENT