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 service
cercalia.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 service
cercalia.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 data
Object 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 recenter
boolean Centra el mapa con los marcadores de ruta.
override
boolean -
removeStep(position){cercalia.widget.routing}
-
Remove step in the position indicated in the parameter
position
moving the other points.Name Type Description position
number 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 lonLat
cercalia.LonLat position
number 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 destination
string | 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 map
cercalia.Map Mapa con el que interactuará el Widget.
-
setOrigin(origin)
-
Set del origen de la ruta.
Name Type Description origin
string | cercalia.LonLat Nombre a buscar o latitud y longitud del origen
-
setRouteMap(routeMap)
-
Name Type Description routeMap
cercalia.RouteMap -
setStep(waypoint, position)
-
Set del punto de paso de la ruta.
Name Type Description waypoint
string | cercalia.LonLat Nombre a buscar o latitud y longitud del destino.
position
number 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 lonLat
cercalia.LonLat position
number override
boolean