Class: TravelOptions

Portal Home

CMaps Analytics Online Portal

Javascript API Docs

How to Use CMaps API

Working with Data

Working with Layers

Including Custom Components

View API Docs

Request Access

Developer Resources

Developers Introduction to CMaps Designer

Strategies for Integrating CMaps Analytics

Embed and Connect CMaps Templates in HTML5 App

Creating custom CMaps Analytics Plugin & Property Sheet

Security Guide

TravelOptions

Represents the parameters needed when using a travel-enabled layer.

Constructor

new TravelOptions()

Properties:
Name Type Description
useCurrentLocationAsStartPoint Boolean deafult is false
unitSystem String deafult is "imperial". "imperial" | "metric"
travelMode String deafult is "driving"
useCacheDriveTimePolyService Boolean deafult is true. If true, results are returned faster for duplicate drive time requests.
markerLayerBindings Array A CSV list of marker layer indices whose object visibility should be constrained by this layer.
distanceMeasure String deafult is centigon.mapping.TravelOptions.DISTANCE_MEASURES.METERS
Version:
  • 1.5.00