Revert "Extends Leaflet-fullhash properly"

This reverts commit 3a06009cba7e74600bb7a1ed0c511cfa8e1c7ffc.
This commit is contained in:
Gautier Pelloux-Prayer 2017-04-24 14:57:19 +02:00
parent d4c5ca67b9
commit cc5da47cad
4 changed files with 3 additions and 74 deletions

View file

@ -263,12 +263,10 @@
}
};
urlHash = new BR.Hash(map, mapLayers);
urlHash.additionalCb = function() {
urlHash = new L.Hash(map, mapLayers, function() {
var url = router.getUrl(routing.getWaypoints(), null);
return "&" + url.substr('brouter?'.length + 1);
};
urlHash.onHashChangeCb = onHashChangeCb;
}, onHashChangeCb);
routingOptions.on('update', urlHash.updateHash, urlHash);
nogos.on('update', urlHash.updateHash, urlHash);
// waypoint add, move, delete (but last)