Difference between revisions of "ARK2/Maps"

From ARK
Jump to: navigation, search
(Configuration)
(Configuration)
Line 16: Line 16:
 
| source  || varchar  ||  30  || The key for the [http://openlayers.org/en/latest/apidoc/ol.source.html OL4 Source] || bing
 
| source  || varchar  ||  30  || The key for the [http://openlayers.org/en/latest/apidoc/ol.source.html OL4 Source] || bing
 
|-
 
|-
| type  || varchar  ||  30  || The type of the source [raster|vector] || raster
+
| type  || varchar  ||  30  || The type of the source (raster, vector) || raster
 
|-
 
|-
| subtype  || varchar  ||  30  || The subtype of the source [image|tile|vector] || tile
+
| subtype  || varchar  ||  30  || The subtype of the source (image, tile, vector) || tile
 
|-
 
|-
 
| format  || varchar  ||  30  || The OL4 Format of the source || bing
 
| format  || varchar  ||  30  || The OL4 Format of the source || bing
Line 26: Line 26:
 
| keyword  || varchar  ||  100  || The ARK translation keyword || map.source.bing
 
| keyword  || varchar  ||  100  || The ARK translation keyword || map.source.bing
 
|-
 
|-
| ticket  || varchar  ||  100  || The auth ticket for the source ||
+
| ticket  || varchar  ||  100  || The API auth ticket for the source ||
 
|-
 
|-
| ticket_expiry  || datetime  ||  || The expiry date for the auth ticket ||
+
| ticket_expiry  || datetime  ||  || The expiry date for the API auth ticket ||
 
|-
 
|-
| options  || varchar  ||  4000  ||  The OL4 Options of the source ||
+
| options  || varchar  ||  4000  ||  The OL4 Options to pass to the source class ||
 
|-
 
|-
 
|}
 
|}

Revision as of 13:00, 30 November 2017

Maps

ARK2 supports the display of maps and mapping layers using OpenLayers4. Maps and layers can be dynamically defined in the config database and then linked to a defined page view. Much of the config closely reflects the OpenLayers4 API.

Configuration

The following database tables can be configured to define an OL4 map.

Define the OL4 Source of the Map Layers in ark_map_source.

ark_map_source
Field Type Size Description Example
source varchar 30 The key for the OL4 Source bing
type varchar 30 The type of the source (raster, vector) raster
subtype varchar 30 The subtype of the source (image, tile, vector) tile
format varchar 30 The OL4 Format of the source bing
view_class varchar 100 The OL4 Class of the source BingMaps
keyword varchar 100 The ARK translation keyword map.source.bing
ticket varchar 100 The API auth ticket for the source
ticket_expiry datetime The expiry date for the API auth ticket
options varchar 4000 The OL4 Options to pass to the source class