UNPKG

@fleetbase/ember-ui

Version:

Fleetbase UI provides all the interface components, helpers, services and utilities for building a Fleetbase extension into the Console.

11 lines (8 loc) 321 B
import { helper } from '@ember/component/helper'; import Point from '@fleetbase/fleetops-data/utils/geojson/point'; export default helper(function pointCoordinates([point]) { if (point instanceof Point) { return `${point.coordinates[1]} ${point.coordinates[0]}`; } return 'Invalid coordinates'; });