This repository contains the source code and documentation for the BĮIP Maps WEB, developed by the Aplinkos Ministerija.
The BĮIP Maps WEB is designed to provide maps and it's functionalities for a number of BĮIP projects.
Key features of the WEB include:
- Displaying different maps' layers
- Identifying objects
- Filtering and displaying features
To get started with the BĮIP Maps WEB, follow the instructions below.
-
Clone the repository:
git clone https://github.com/AplinkosMinisterija/biip-maps-web.git
-
Install the required dependencies:
cd biip-maps-web yarn install
-
Set up the required environment variables. Copy the
.env.example
file to.env
and provide the necessary values for the variables. -
Start the WEB server:
yarn dev
The WEB will be available at http://localhost:5173
.
To deploy the application to the production environment, create a new GitHub release:
- Go to the repository's main page on GitHub.
- Click on the "Releases" tab.
- Click on the "Create a new release" button.
- Provide a version number, such as
1.2.3
, and other relevant information. - Click on the "Publish release" button.
The main
branch of the repository is automatically deployed to the staging environment. Any changes pushed to the main
branch will trigger a new deployment.
To deploy any branch to the development environment use the Deploy to Development
GitHub action.
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request. For more information, see the contribution guidelines.
This project is licensed under the MIT License.
Maps listens for events, that are provided via window.postMessage(...)
function. And sends data that can be listened via window.addEventListener("message", () => {...})
https://maps.biip.lt/alis/fishing
Name | Desciption | Type | Default |
---|---|---|---|
cadastral_id |
Filters and highlighs by cadastral ID | Filter |
- |
show_search |
Enables search | Boolean |
false |
preview |
Enables feature sidebar | Boolean |
false |
Sends:
Name | Desciption | Type |
---|---|---|
click |
Provides click features | Array of items |
buyPermission |
Provides alis water body data for buying one permission | Object of alis water body data |
https://maps.biip.lt/animals
https://maps.biip.lt/animals/draw
Name | Desciption | Type | Default |
---|---|---|---|
municipalityCode |
Filters and highlighs municipality | Filter |
- |
preview |
Disables editing | Boolean |
false |
Listens:
Name | Desciption | Type |
---|---|---|
geom |
Draws provided feature collection | Feature collection |
address |
Zooms to provided address + adds point | String (e.g. Gedimino pr. 1, Vilnius ) |
Sends:
Name | Desciption | Type |
---|---|---|
userObjects |
Provides drawn features | Feature collection |
https://maps.biip.lt/edit
Name | Desciption | Type | Default |
---|---|---|---|
multi |
Enables multi geometry | Boolean |
false |
buffer |
Enables buffers to geometry | Boolean | String |
false. Possible values: xs (default if boolean, starts with 1 m), sm (starts with 10 m), md (starts with 100 m), lg (starts with 500 m), xl (starts with 1 km). |
preview |
Disables editing | Boolean |
false |
types |
Enables specific draw types | String[] |
['point', 'polygon', 'line' |
autoZoom |
Enables auto zoom on change | Boolean |
false |
closeOnSearch |
Closes search popup on select | Boolean |
false |
bufferMin |
Overrides buffer's starting value | Number |
|
bufferMax |
Overrider buffer's ending value | Number |
Listens:
Name | Desciption | Type |
---|---|---|
geom |
Draws provided feature collection | Feature collection |
Sends:
Name | Desciption | Type |
---|---|---|
data |
Provides drawn features | Feature collection |
https://maps.biip.lt/medziokle
Name | Desciption | Type | Default |
---|---|---|---|
mpvId |
Filters and highlighs MPV | Filter |
- |
draw |
Enables draw | Boolean |
false |
zoom |
Defines zoom location | {x: number, y: number} |
- |
points |
Defines points to mark in map | Array<{x: number, y: number, type?: 'current' | 'other', [key: string]: any}> |
- |
Listens:
Name | Desciption | Type |
---|---|---|
zoom |
Defines zoom location | {x: number, y: number} |
points |
Defines points to mark in map | Array<{x: number, y: number, type?: 'current' | 'other', [key: string]: any}> |
Sends:
Name | Desciption | Type |
---|---|---|
selected |
Provides selected point | Feature |
data |
Provides drawn features | Feature collection |
https://maps.biip.lt/medziokle/draw
Name | Desciption | Type | Default |
---|---|---|---|
mpvId |
Filters and highlighs MPV | Filter |
- |
preview |
Disables editing | Boolean |
false |
Listens:
Name | Desciption | Type |
---|---|---|
geom |
Draws provided feature collection | Feature collection |
Sends:
Name | Desciption | Type |
---|---|---|
data |
Provides drawn features | Feature collection |
https://maps.biip.lt/hunting/tracks
Name | Desciption | Type | Default |
---|---|---|---|
mpv_id |
Filters and highlighs MPV | Filter |
- |
Sends:
Name | Desciption | Type |
---|---|---|
click |
Provides selected items | Array of items |
https://maps.biip.lt/gamtotvarka
Name | Desciption | Type | Default |
---|---|---|---|
preview |
Enables preview | Boolean |
false |
https://maps.biip.lt/rusys
Name | Desciption | Type | Default |
---|---|---|---|
place |
Filters places | Filter |
- |
informationalForm |
Filters informational forms | Filter |
- |
kingdom |
Filters kingdoms | Filter |
- |
species |
Filters species | Filter |
- |
type |
Switching layers | inva|sris |
- |
auth |
Defines auth token | String |
- |
preview |
Enables preview | Boolean |
false |
amateur |
Enables amateur mode | Boolean |
false |
request |
Filters by request | Number |
- |
Listens:
Name | Desciption | Type |
---|---|---|
filter |
Defines filters | Filter |
geom |
Highlights provided feature collection | Feature collection |
Sends:
Name | Desciption | Type |
---|---|---|
selectedForm |
Provides selected form id | ID |
selectedPlace |
Provides selected place id | ID |
https://maps.biip.lt/smalsuolis
Listens:
Name | Desciption | Type |
---|---|---|
geom |
Zooms to provided feature collection | Feature collection |
filters |
Sets query filters | Filter |
https://maps.biip.lt/uetk
Name | Desciption | Type | Default |
---|---|---|---|
cadastralId |
Filters by cadastral ID | Filter |
- |
preview |
Enables preview | Boolean |
false |
https://maps.biip.lt/zuvinimas
Name | Desciption | Type | Default |
---|---|---|---|
id |
Filters by ID | Filter |
- |
createdBy |
Filters by creator | Filter |
- |
userId |
Filters by user | Filter |
- |
stockingCustomer |
Filters by stocking customer | Filter |
- |
tenantId |
Filters by tenant | Filter |
- |
Sends:
Name | Desciption | Type |
---|---|---|
click |
Provides selected items | Array of items |
https://maps.biip.lt/zuvinimas/draw
Name | Desciption | Type | Default |
---|---|---|---|
id |
Filters by ID | Filter |
- |
preview |
Disables editing | Boolean |
false |
Listens:
Name | Desciption | Type |
---|---|---|
geom |
Draws provided feature collection | Feature collection |
cadastralId |
Zooms to provided cadastral object & adds point | Number | String |
Sends:
Name | Desciption | Type |
---|---|---|
userObjects |
Provides drawn features | Feature collection |
selected |
Provides drawn features & UETK items | {geom: FeatureCollection, items: Array<UEKT object>} |
https://maps.biip.lt/zuvinimas/upcoming
Listens:
Name | Desciption | Type |
---|---|---|
zoom |
Zooms to provided feature collection | Feature collection |
https://maps.biip.lt/zuvinimas/stats
Accepts filters such as:
Equals
https://maps.biip.lt?field=value
In:
https://maps.biip.lt?field={$in:[1,2]}
Exists:
https://maps.biip.lt?field={$exists:true}
Not exists:
https://maps.biip.lt?field={$exists:false}
Greater than:
https://maps.biip.lt?field={$gt:1}
Greater than or equal:
https://maps.biip.lt?field={$gte:1}
Less than:
https://maps.biip.lt?field={$lt:1}
Less than or equal:
https://maps.biip.lt?field={$lte:1}