Location Picker
Both Rightclick and Button with higher precision
This commit is contained in:
parent
32b919dca7
commit
115d9abab9
5 changed files with 131 additions and 3 deletions
lib
|
@ -62,6 +62,18 @@ define(function () {
|
|||
return true
|
||||
}
|
||||
|
||||
function gotoLocation(d) {
|
||||
if (!d)
|
||||
return false
|
||||
|
||||
targets.forEach( function (t) {
|
||||
if(!t.gotoLocation)console.warn("has no gotoLocation", t)
|
||||
t.gotoLocation(d)
|
||||
})
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
function loadState(s) {
|
||||
if (!s)
|
||||
return false
|
||||
|
@ -162,6 +174,8 @@ define(function () {
|
|||
}
|
||||
}
|
||||
|
||||
self.gotoLocation = gotoLocation
|
||||
|
||||
self.reset = function () {
|
||||
resetView()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue