DeepZoom scripting
    Preparing search index...

    Function routeCreate

    • Create a new route from coordinates in order of travel.

      By default the coordinates are rough waypoints which the autorouter routes through. With manual: true they are the exact route points.

      Parameters

      • json: {
            color: string;
            coords: number[][];
            depart: string;
            enabled: boolean;
            enableLockToMap: boolean;
            id: string;
            manual: boolean;
            name: string;
            speed: number;
        } = ...
        • color: string

          string: The color of the route, e.g. "pink" or "#ff0000" (optional)

        • coords: number[][]

          array: [longitude, latitude] pairs in order of travel

        • depart: string

          string: The departure time as an ISO 8601 date time string (optional)

        • enabled: boolean

          boolean: enable or disable the route from participating in time animations (optional)

        • enableLockToMap: boolean

          boolean: If true, keep the route location centered on the map (optional)

        • id: string

          string: The id to give the new route

        • manual: boolean

          boolean: true uses the coords as the exact route points, false (default) autoroutes through them (optional)

        • name: string

          string: The visible name of the route (optional)

        • speed: number

          number: The speed of the route in knots (optional)

      Returns void

      id

      {
      "id": "route 1",
      "coords": [[-122.40, 47.60], [-122.75, 48.12]],
      "name": "Seattle to Port Townsend",
      "speed": 6
      }