Location Picker

Both
Rightclick and Button
with higher precision
This commit is contained in:
Moorviper 2016-02-25 15:47:07 +01:00
parent 32b919dca7
commit 115d9abab9
5 changed files with 131 additions and 3 deletions

View file

@ -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()
}