Move some javascript functions out of global scope
This commit is contained in:
parent
8568c93703
commit
bd2e999756
10 changed files with 60 additions and 65 deletions
|
@ -275,7 +275,7 @@ L.extend(L.Icon.Default.prototype, {
|
|||
}
|
||||
});
|
||||
|
||||
function getUserIcon(url) {
|
||||
OSM.getUserIcon = function (url) {
|
||||
return L.icon({
|
||||
iconUrl: url || OSM.MARKER_RED,
|
||||
iconSize: [25, 41],
|
||||
|
@ -284,4 +284,4 @@ function getUserIcon(url) {
|
|||
shadowUrl: OSM.MARKER_SHADOW,
|
||||
shadowSize: [41, 41]
|
||||
});
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue