logo
API Documentation
Tutorials
Getting Started Initialization Layers Third party Controls Geometries Vector styles Measures InfoBox Utils
Releases

Tutorials

  • Getting Started
    • Setup
  • Initialization
    • Init with token
    • Init with username/password
    • Init with constrained zoom levels
    • Init empty map
    • Init with multiple maps
    • Init in 3D mode
    • Init with image 3D mode
    • Init map with a restricted extent
  • Layers
    • XYZ Tile
    • WMS Tile
    • WMTS Tile
    • Vector Layer
    • Vector Tiles
    • WFS Layer
    • ArcGIS Feature
    • Group Layer
  • Third party
    • Google
    • Google side by side
    • Cesium
  • Controls
    • Basics
    • Map modes
    • Map orientations
    • Layer control
    • Zoom control
    • Map Bar Control
    • Map Button
    • Map Toggle
    • Vexcel image metadata
    • Vexcel find collection
    • Vexcel show collection
    • Vexcel Infrared
    • Brightness and Contrast Control
  • Geometries
    • Point
    • Line
    • Polygon
    • MultiPolygon
    • WKT reader
    • GeoJSON reader
    • Feature click
    • Feature hover
  • Vector styles
    • Polygon styles
    • Point styles
    • Point shapes styles
    • Text styles
    • Feature styles
  • Measures
    • 2D mode
    • 3D mode
    • Change units
    • Edit
    • Tooltips
    • Custom Tooltips
  • InfoBox
    • InfoBox fixed
    • InfoBox on click
    • InfoBox feature
  • Utils
    • Transform

Tutorial

Change units


This tutorial demonstrates how to customize measurement units in your mapping application. Measurement unit customization allows users to view and interpret spatial measurements in their preferred units of measure, enhancing usability for diverse user bases with different regional or professional preferences.

You'll learn how to:

  • Switch between metric and imperial measurement systems
  • Customize specific units for different measurement types (area, length, slope)
  • Apply unit changes programmatically using the MeasurementManager
  • Handle measurement events to capture and process measurement data
  • Create an intuitive user interface for unit selection

Measurement unit customization is essential for creating user-friendly mapping applications that cater to international audiences and specialized industries. This capability allows users to work with familiar units of measure, reducing cognitive load and improving the accuracy of spatial analysis and decision-making based on measurement results.


Measurement tools


Measure system

Select unit automatically for each measure in one of this systems Metric/Imperial

Measure units

Fix unit for measure type

Area units

Length units

Slope units


Classes:

  • Map
  • Measure
  • MeasurementManager

index.html

        
      

main.js

        
    

Documentation generated by Vexcel Imaging