| layout | page |
|---|---|
| title | Velocity |
| permalink | /configure/layers/velocity |
| parent | Layers |
| grand_parent | Configure |
For visualizing data that represents velocities with magnitude and horizontal direction (e.g., wind, ocean currents). They may be visualized as streamlines or particles (with placeholders to fully support arrows and wind barbs in the future). May be used in conjunction with Veloserver.
type: string
The unique display name and identifier of the layer. It must be unique and contain no special characters
type: enum
The kind of visualization for the layer: streamlines (animated flowlines), particles (similar to streamlines but single direction for all particles), arrows (similar to vectors with arrow styling), or wind barbs.
type: string
A file path that points to a geojson, gribjson (streamlines only), or geotiff (arrows only). If the path is relative, it will be relative to the mission's directory. The URL must contain a proper placeholder ending such as: {z}/{x}/{y}.png. Works with Veloserver URLs.
type: integer
The lowest (smallest number) zoom level of the tile set.
Note: This field can be automatically populate with "Populate from XML". "Populate from XML" uses looks for a tilemapresource.xml in the tileset directory specified by the URL field.
type: integer
The highest (largest number) zoom level to see in MMGIS. This value is at least as high as Maximum Native Zoom. This allows zooms level higher than that of the tileset. Instead of rendering new tile image, it scales them in instead.
type: float
A value from 0 to 1 of the layer's initial opacity. 1 is fully opaque.
type: boolean
Whether the layer can be dynamically updated via the JavaScript API or not. If true, the layer can be dynamically updated and the URL is not required. If true and a URL is set and Time Enabled is true, the initial url query will be performed.
Utilizes leaflet-velocity.
Sample layer: https://raw.githubusercontent.com/onaci/leaflet-velocity/refs/heads/master/demo/wind-global.json
type: float
Velocity at which particle intensity is minimum (m/s). Default 0
type: float
Velocity at which particle intensity is maximum (m/s). Default: 15
type: float
Scale for wind velocity. Default: 0.005
type: float
Max number of frames a particle is drawn before regeneration. Default: 90
type: float
Line width of a drawn particle. Default: 1
type: float
Particle count scalar. Default: 1/300
type: float
Particle frame rate. Default 15
type: boolean
Display label of pixel values on the map.
type: string
Where to display data values.
type: string
Set of colors for visualizing velocity magnitude values.
Utilizes Leaflet.Rain.
Currently only works with GeoJSON containing list of corner points. Example:
{
"type": "FeatureCollection",
"features": [
{ "type": "Feature", "geometry": { "type": "Point", "coordinates": [-124.409591, 32.534156] }, "properties": {} },
{ "type": "Feature", "geometry": { "type": "Point", "coordinates": [-114.131211, 32.534156] }, "properties": {} },
{ "type": "Feature", "geometry": { "type": "Point", "coordinates": [-114.131211, 42.009518] }, "properties": {} },
{ "type": "Feature", "geometry": { "type": "Point", "coordinates": [-124.409591, 42.009518] }, "properties": {} },
{ "type": "Feature", "geometry": { "type": "Point", "coordinates": [-124.409591, 32.534156] }, "properties": {} }
]
}type: string
The color of the particles.
type: float
Particle angle (degrees). Default: 80
type: float
Particle width (px). Default: 1
type: float
X-spacing between particles (px). Default 10
type: float
Particle length (px). Default: 4
type: float
Y-spacing between particles (px). Default: 10
type: float
Particle speed factor. Values greater than 1 increase speed. Default: 0.1