Extends Leaflet-fullhash properly
This commit is contained in:
parent
ac57250b7e
commit
d4c5ca67b9
4 changed files with 74 additions and 3 deletions
|
|
@ -263,10 +263,12 @@
|
|||
}
|
||||
};
|
||||
|
||||
urlHash = new L.Hash(map, mapLayers, function() {
|
||||
urlHash = new BR.Hash(map, mapLayers);
|
||||
urlHash.additionalCb = function() {
|
||||
var url = router.getUrl(routing.getWaypoints(), null);
|
||||
return "&" + url.substr('brouter?'.length + 1);
|
||||
}, onHashChangeCb);
|
||||
};
|
||||
urlHash.onHashChangeCb = onHashChangeCb;
|
||||
routingOptions.on('update', urlHash.updateHash, urlHash);
|
||||
nogos.on('update', urlHash.updateHash, urlHash);
|
||||
// waypoint add, move, delete (but last)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue