profile upload (requires server update)
This commit is contained in:
parent
136a182539
commit
973d8bab75
8 changed files with 129 additions and 27 deletions
|
|
@ -103,7 +103,7 @@
|
|||
routingOptions.on('update', updateRoute);
|
||||
|
||||
nogos = new BR.NogoAreas();
|
||||
nogos.on('update', updateRoute);
|
||||
nogos.on('update', updateRoute);
|
||||
|
||||
// initial option settings
|
||||
router.setOptions(nogos.getOptions());
|
||||
|
|
@ -113,6 +113,11 @@
|
|||
download = new BR.Download();
|
||||
elevation = new BR.Elevation();
|
||||
profile = new BR.Profile();
|
||||
profile.on('update', function(evt) {
|
||||
router.uploadProfile(evt.profileText, function(profile) {
|
||||
routingOptions.setCustomProfile(profile);
|
||||
});
|
||||
});
|
||||
|
||||
routing = new BR.Routing({routing: {
|
||||
router: L.bind(router.getRouteSegment, router)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue