reuse existing custom profile file in editing session by passing id in URL
This commit is contained in:
parent
973d8bab75
commit
3c0765547c
3 changed files with 23 additions and 4 deletions
|
|
@ -114,7 +114,8 @@
|
|||
elevation = new BR.Elevation();
|
||||
profile = new BR.Profile();
|
||||
profile.on('update', function(evt) {
|
||||
router.uploadProfile(evt.profileText, function(profile) {
|
||||
var profileId = routingOptions.getCustomProfile();
|
||||
router.uploadProfile(profileId, evt.profileText, function(profile) {
|
||||
routingOptions.setCustomProfile(profile);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue