cgxp.RoutingPanel

xtype
cgxp_routingpanel
class cgxp.RoutingPanel(config)

Config Options

Configuration properties.

directionsTpl

XTemplate used to format driving directions. There are four specific formatters added to Ext.util.Format for routing:

  • Ext.util.Format.routeImage - creates an img tag with an image from directionType. Invoke with {directionType:routeImage}
  • Ext.util.Format.routeDistance - formats the distance as m or km with variable decimal places depending on distance. Invoke with {distance:routeDistance}
  • Ext.util.Format.routeTime - formats the time as “h m s” appropriately. Invoke with {time:routeTime}
  • Ext.util.Format.routeDirection - formats a translated version of the driving directions for a given directionType. This formatter expects to be passed the entire record and should be invoked using {[Ext.util.Format.routeDirection(values)]} to work correctly.
highlightStyleConfig

Object Optional configuration of the highlight feature.

newRouteStyleConfig

Object Optional configuration of the new route feature.

routeStyleConfig

Object Optional configuration of the route feature.

sourceStyleConfig

Object Optional configuration of the source feature.

targetStyleConfig

Object Optional configuration of the target feature.

vectorLayerConfig

Object Optional configuration of the vector layer.

viaStyleConfig

Object Optional configuration of the via features.

zoomToRouteLevel

Integer The zoom level to zoom to when a user clicks on one of the directions in the list view. Default 9

Table Of Contents

Previous topic

cgxp.RedLiningPanel

Next topic

cgxp.datepicker.WMSDatePicker

This Page

Fork me on GitHub