Releases: route360/r360-js
Releases · route360/r360-js
v0.5.3 multi-layer css
v0.5.2 gmaps polygon offset fix
Fixed offset issue with initial load of svg polygons in google maps.
v0.5.1 - maxTransfers
Added ability to set max allowed transfers on a traveltype 'transit' request
v0.5.0 - Travel Time Factors
Addition of ability to set travel time factors to all edges, or to specific edge classes.
New method travelOptions.setTravelTimeFactors(factors)
where factors
is object of { edgeClassName: factor }
(or { all: factor }
to apply globally.)
e.g.
travelOptions.setTravelTimeFactors({ all: 1.5 });
to apply a multiplier of 1.5 to all travel times on all edgeClasses, thus slowing down all travel.
or
travelOptions.setTravelTimeFactors({
motorway: 0.5,
motorway_link: 0.5
});
to apply multiplier of 0.5 to all freeway-based edgeClasses, thus speeding up travel on freeways.
Full list of OSM edge classes:
- "ferry"
- "motorway"
- "motorway_link"
- "trunk"
- "trunk_link"
- "primary"
- "primary_link"
- "secondary"
- "secondary_link"
- "tertiary"
- "residential"
- "tertiary_link"
- "road"
- "unclassified"
- "service"
- "living_street"
- "pedestrian"
- "track"
- "path"
- "cycleway"
- "footway"
- "steps"
- "unknown"
gmaps id fix
gmaps polygon update to use id generator, allowing multiple r360 polygon layers