Embedded maps – URL API

Embedded maps – URL API

Allows you to manipulate maps using one set of URL parameters. Relevant parameters can be combined in the following order:
1. drawgeom
2. zoombox
3. zoom

URL Parametere

Name Description
zoom Control the zoom level. Values are often between 1-16
Example:

  • zoom=12
zoombox Zoomer to max. Syntaks: minX,minY,maxX,maxY,SRID

Example:

  • zoombox=225060,7018725,331687,7081517,32633
  • zoombox=63.005978555197395,7.699730040672304,63.95955477757647,13.297872932848932,4326
drawgeom

Draws vector data based on the WKT representation. More can be sent using JSON array. Syntaks: [{"wkt": "POLYGON ((10 63, 10 64, 12 64, 12 63))","srid":4326[,"label":"some text"][,color:[blue|purple|green|red]]}]

  • Srid is not required – standard er: 4326
  • Label is not required
  • Color is not required

Eksempel:

  • drawgeom={"wkt": "POLYGON ((10 63, 10 64, 12 64, 12 63))","srid":4326,"label":"some text"}
  • drawgeom=[{"wkt": "POLYGON((141880 6814964,101260 6915160,1064 6874540,41683 6774344,141880 6814964))","srid":32633,"label":"Proj 32633","color":"purple"},{"wkt": "POLYGON ((10 63, 10 64, 12 64, 12 63))","srid":4326,"label":"some text","color":"red"}]
  • drawgeom=[{"wkt": "POINT(12 65)","srid":4326,"label":"Punkt tekst","color":"green"},{"wkt": "LINESTRING(13 63, 13 64, 14 63)","srid":4326,"label":"Linje tekst","color":"purple"},{"wkt": "POLYGON ((10 63, 10 64, 12 64, 12 63))","srid":4326,"label":"Polygon tekst","color":"red"}]
lt Control what type of label that are to be used on drawn objects in drawgeom. Syntaks: [1|2|3|4]. lt is not demanded.

Possible values:

  • 1 : Label displayed when the mouse pointer is over the object (standard)
  • 2 : Static label and label when the mouse pointer is over the object
  • 3 : Static label
  • 4 : Label shows by click on objects

Example on iframe code with URL API

<iframe name="embedMap" title="Adaptive EmbedMap" scrolling="no" frameborder="0" width="400px" height="600px" src="http://localhost/a_a3/embedded/38e28790-4146-4150-ac41-7bcd99371a5b?zoom=3" ></iframe><noframes>Your browser does not support iframe. <a href="http://localhost/a_a3/embedded/38e28790-4146-4150-ac41-7bcd99371a5b?zoom=3" target="_blank">You can see the content of the frame here</a></noframes>

Note!When using drawgeom you must use single quotes ( ‘) around the url when the url itself contains double quotes ( “).

Example:

<iframe name="embedMap" title="Adaptive EmbedMap" scrolling="no" frameborder="0" width="400px" height="600px" src='http://localhost/a_a3/embedded/38e28790-4146-4150-ac41-7bcd99371a5b?drawgeom={"wkt": "POLYGON ((10 63, 10 64, 12 64, 12 63))","srid":4326,"label":"some text"}' ></iframe><noframes>Your browser does not support iframe. <a href='http://localhost/a_a3/embedded/38e28790-4146-4150-ac41-7bcd99371a5b?drawgeom={"wkt": "POLYGON ((10 63, 10 64, 12 64, 12 63))","srid":4326,"label":"some text"}' target="_blank">You can see the content of the frame here</a></noframes>

Datasources

Datasources

datasources

The Button “DataSources” opens the possibility to view, edit, delete and create new data sources.

table-datasources

Name Description
Name A describing name
Description A description of the data source
Source Source of the data

datasources-add

Name Description Changeable
Name A describing name Yes
Main Category Select the main category where the datasource belongs
Yes
Description A description of the data source.
Yes
Source Who/what is the source of the data source.
Yes
Kretstype Select the statistical area type data source belongs
Yes
Variabel 1-6 You can give a descriptive names for variables.
Yes

add-data-datasource

To link data up to the data source, right click on the row the desired data source is located in. Then select “Add Data” and you will get up one window (as shown below) with the ability to select data file.

datasources-add-data

 

Dataviews

Dataviews

dataviews

By clicking on “Dataviews” opens the possibility to view, edit, delete and create new dataviews. Dataviews is ..

table-dataviews

Name Description
Name Name on dataview
Description A description of dataview
Active Determines if dataview is active or not.

To add a new data view click on add-btn. This will then open one window where one goes through and fill out several forms, as shown below:add-dataview-1

Name Description Changeable
Name Name of the dataview, will be displayed in Adaptive Yes
Description Description of data view Yes
Dataset Here you select the dataset you want to connect dataview to. No
Add second dataset Tick if you want to add one additional dataset.  No
Datakilde 2 If you have chosen to use two datasets, select the second data set here  No
 Pivot Tick on and off Pivot table Yes


add-dataview-2

name descriptions Changeable
Selection criteria geography and vairables Select geographic and variables condition Yes
Year form Year from Yes
Year to Year to Yes
To latest year If you want even last year in the data  Yes
Year list List of the number of years, if you just want someone specific No
Selection criteria quartales Select desired quarter  Yes
Selection criteria months Select desired months  Yes

 

The picture below will appear only if the “Pivot” is enabled:

add-dataview-3

Changeable

Name Description
Row definition Select desired rows and columns by double-clicking on the desired row / column. Choose the order by highlighting a row and pressing the arrows marked in red Yes
Rows or columns Choose whether you want extra rows or columns. Yes
Add row/column Select function you want to add to the row or column Yes
Row/column title Title of new row / column  Yes
Row/column definition Print definition in a row or column  No
Include row/column in chart If all fields for a new row or column is filled. Opens the possibility to choose whether to include this row / column into the charts  Yes

 

Picture below are only displayed if “Pivot” is not selected:add-dataviw-non-pivot

Name Description Changeable
Row definition Select columns to include Yes

 

add-dataview-4

Name Description Changeable
Organisering Select organizing charts Yes
Adaptive theme Tick if you want to show ass one theme in Adaptive Yes
Geometry type Select the geometry point or surfaces Yes
A3 symbol Select symbol type Yes
A3 symbol color Select symbol color  Yes
A3 outline color select a color for outline  Yes
A3 symbol size Select symbol size  Yes
A3 outline size Choose width outline  Yes
A3 opacity Select degree of transparency where 100 is not transparent  Yes
Data column for A3 class Select column theme  Yes
A3 class data-intervals Define data intervals if desired  Yes
Diagramtype Select the type of chart from list  Yes
Diagramtittel Enter title to the chart.  Yes
Charts from rows/columns Choose whether charts created from rows or columns  Yes
Exclude values at position (see preview) Enter if some of values are ​​desired excluded  Yes
Series in chart Select the series to be included in charts  Yes
Intervals Selected intervals choropleth maps and Adaptive would present a textbox. Read description in shown window  Yes
Color palette Select the color palette from a list.  Yes

 

add-dataview-5

Name Description Changeable
Number of decimals Select the number of decimal places for the desired accuracy Yes
Round of to nearest Select whether it is desired to rounding and to the nearest value that is desired Yes

 

 

Statistical Areatype

Statistical Areatype

statistical-areatype

Button “Statistical area type” opens the possibility to view, edit, delete and create statistical area types. These are elements that are linked to the “DataSources” described  here. 

The picture below shows one clip of how the table with statistical area types will look like.

table-statistical-areatype

Name Description
Name Name of areal type
Description A descriptive text.

for adding a areatype click add-btn,this will cause the window shown below opens. Fill out the fields and clicksave.statistical-areatype-add

Name Description Kan endres
Name Name on area type Yes
Description A describing text Yes

Add Elements

Add Elements

statistics-add-elements

The button “Add element” opens the possibility to edit the content of statistical categories. This means that you can add and remove Dataviews from the statistical categories mentioned under the section “Statistical Categories”. This will add the ability to turn off the display of this data in Adaptive. The picture below shows how the window you can make changes to appear:

table-statistics-add-elements

Name Description
Name Name of the Dataview
Description Description of the Dataview
Active Displays whether the current data view is active.

To add one data view to a statistical category by sheet to select the desired category from the dropdown list marked with red. Once the correct category is selected, the data view you want to add to the table highlighted is in green. Then hold the left mouse button and drag it over to the right side shown in blue. When the element is in the correct position so that one can drop this symbol will appear markert-rad, if you are not in position to add the item this symbol will appearnot-markert-rad.

 

 

Statistics Category

Statistics Category

statistics-category

By clicking “Stastics category” it will open the possibility to view, edit, delete and create new statistical categories. A statistical category is linked to a main category.

table-statistics-category

Navn Description
ID Unique ID of the item.
Main category Shows the main category a statistical category is linked.
Name Name of the category. Shown in Adaptive.
Active Active Indicates whether the category is active.
Description Description of the element

To add a new statistical category click add-btn, this opens the window below:

statistics-category-add

Name Description Changeable
Name Name of the category. Is shown in Adaptive Yes
Description A description of the new category. Yes
Main category Select the main category of the new statistical category should be linked. Yes

Main Categories

Main Categories

main-categoris

The button “Main categories” lets you in and change, delete and create new categories for statistical data.

table-main-categories

Name Description
Name Name of the category. Shown in Adaptive.
Active Indicates whether the category is active.
Description Description of the item

To add a new statistical category click add-btn,this opens the window below:

add-main-categories

Name Description Changeable
Navn Name of the category. Shown in Adaptive Yes
Sort order  Sort order Yes
Description A description of the category Yes

Statistics

Statistics

Statistics is a module that must be installed separately on Adaptive. Using this module you can present statistical data in maps. You can also use the general data and from these extract part of the data and present this as stats. This can be presented in table and figure form on a separate website.

If the data is a geographical location so can also be shown in the map that would present a textbox.

QGis Projects

QGis Projects

qgis

By clicking “QGIS Projects” opens the possibility to add, modify and delete “QGIS Projects” in Adaptive. This module can use to add your QGIS projects in Adaptive so that these are shown in the map.

table-qgis

Name Description
ID Unique ID of the item.
Name Name of the QGIS project
File File name of QGIS project file that is uploaded..
Active Determines if the project is active or not.
Roles Displays the roles that have access to view this project. These can be changed in the same manner as mentioned below Digi Theme.

To add a new QGIS project click on add-btn, window below will then appear. Then select the project you want by clicking on qgis-upload-file.

qgis

Configuration of Embedded maps

Configuration of embedded maps

As an administrator you can choose which base map that will be accessible to users with and without rights. One can choose which coordinate system solution to use and whether to use BAAT or not. Note that these settings are generic and that any changes will apply to all embedded maps created after the settings are changed!

config-embedded-maps

Name Description
embedded_basemap_guest List of base map that is available to users with special rights
embedded_basemap_admin List of background maps are available for administrators and users with rights
embedded_cfg Coordinate system used in the solution. Standard is UTM33.
embedded_basemap_usebaat Shall base maps be created by administrators and users with rights use BAAT? Standard threaten.

Embedded maps use Leaflet as map engine, see http://leafletjs.com/ for more information. Any limitations on the leaflet will determine which background map and theme supported. Coordinate in use must be supported by proj4leaflet.