Refactor URL generating methods
This commit is contained in:
parent
ce53e510ad
commit
b5800b4c2f
4 changed files with 81 additions and 78 deletions
|
@ -60,8 +60,8 @@ L.OSM.share = function (options) {
|
|||
}
|
||||
|
||||
function update() {
|
||||
$shortLink.attr('href', options.getShortUrl(map));
|
||||
$longLink.attr('href', options.getUrl(map));
|
||||
$shortLink.attr('href', map.getShortUrl());
|
||||
$longLink.attr('href', map.getUrl());
|
||||
}
|
||||
|
||||
function select() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue