new cercalia.widget.Routing(options)
Constructor del widget Routing
| Name | Type | Description |
|---|---|---|
options |
cercaliax.widget.RoutingOptions |
Opciones del widget de Routing. |
Methods
-
addLogisticsInService(service){cercalia.service.Routing|cercalia.service.LogisticsRouting}
-
Fills service with the logistics options that the users indicated
Name Type Description servicecercalia.service.Routing | cercalia.service.LogisticsRouting -
addOptionsRouteInService(service){cercalia.service.Routing|cercalia.service.LogisticsRouting}
-
Fills service with the rute options that the users indicated
Name Type Description servicecercalia.service.Routing | cercalia.service.LogisticsRouting -
addStepStop()
-
Añade una caja al fina de la lista de puntos de parada.
-
addStop()
-
Añade una caja al final de la lista de puntos.
-
clean()
-
Limpia las cajas y la ruta dibujada en el mapa
-
cleanBoxes()
-
Limpia las cajas no utilizadas para el calculo de ruta (minimo deja dos)
-
createReport(data)
-
Create report
Name Type Description dataObject Cercalia object JSON
-
getAutocompletesWidgets(){Array.<cercalia.widget.GeocodingSuggest>}
-
Get autocomplete widgets
Returns:
List autocompletes widgets.
-
getClass(){string}
-
Return object type.
-
getCounterBox(){Number}
-
Return number of boxs.
-
getOptionsRoute(){Object}
-
Get Options Route
-
getRouteMap(){cercalia.RouteMap}
-
-
getStops(){Array}
-
Returns:
list of geocodings
-
isLogistics(){boolean}
-
Returns:
true if it's a logistics route, otherwise false.
-
printReport()
-
Print route
-
refresh(recenter, override)
-
Reordena los contenidos de las cajas segun se haya modificado. Tambien las imagenes de cada caja....
Name Type Description recenterboolean Centra el mapa con los marcadores de ruta.
overrideboolean -
removeStep(position){cercalia.widget.routing}
-
Remove step in the position indicated in the parameter
positionmoving the other points.Name Type Description positionnumber Returns:
this
-
removeStepDrag(lonLat, position){cercalia.widget.routing}
-
treu el punt dragable, en la posició indicada movent els altres punts a la cua.
Name Type Description lonLatcercalia.LonLat positionnumber Returns:
this
-
resize(height:)
-
Recalcula el tamaño del widget
Name Type Description height:number Altura del widget. Si no se define y se ha definido una funcion de height se recalculara utilizando esta.
-
saveKml()
-
Save route as KML.
-
setDestination(destination)
-
Set del origen de la ruta.
Name Type Description destinationstring | cercalia.LonLat Nombre a buscar o latitud y longitud del destino
-
setMap(map)
-
Modifica el mapa con el que interactua el widget.
Name Type Description mapcercalia.Map Mapa con el que interactuará el Widget.
-
setOrigin(origin)
-
Set del origen de la ruta.
Name Type Description originstring | cercalia.LonLat Nombre a buscar o latitud y longitud del origen
-
setRouteMap(routeMap)
-
Name Type Description routeMapcercalia.RouteMap -
setStep(waypoint, position)
-
Set del punto de paso de la ruta.
Name Type Description waypointstring | cercalia.LonLat Nombre a buscar o latitud y longitud del destino.
positionnumber Posición del punto de paso.
-
setStepDrag(lonLat, position, override)
-
posa el el punt, en la posició indicada movent els altres punts a la cua.
Name Type Description lonLatcercalia.LonLat positionnumber overrideboolean