Skip to content

Commit

Permalink
Revert "Extends Leaflet-fullhash properly"
Browse files Browse the repository at this point in the history
This reverts commit 3a06009.
  • Loading branch information
bagage committed Apr 24, 2017
1 parent d4c5ca6 commit cc5da47
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 74 deletions.
6 changes: 1 addition & 5 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
"leaflet.locatecontrol": "^0.60.0",
"font-awesome": "^4.7.0",
"bootstrap-select": "hugdx/bootstrap-select#patch-1",
"leaflet-sidebar": "^0.1.9",
"leaflet-fullHash": "KoGor/leaflet-fullHash#master"
"leaflet-sidebar": "^0.1.9"
},
"overrides": {
"leaflet": {
Expand Down Expand Up @@ -97,9 +96,6 @@
"css/font-awesome.css",
"fonts/*"
]
},
"leaflet-fullHash": {
"main": "leaflet-fullHash.js"
}
}
}
6 changes: 2 additions & 4 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
65 changes: 0 additions & 65 deletions js/plugin/Hash.js

This file was deleted.

File renamed without changes.

0 comments on commit cc5da47

Please sign in to comment.