Location Picker

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

View file

@ -1,4 +1,4 @@
define(["infobox/link", "infobox/node"], function (Link, Node) {
define(["infobox/link", "infobox/node", "infobox/location"], function (Link, Node, Location) {
return function (config, sidebar, router) {
var self = this
var el
@ -41,6 +41,12 @@ define(["infobox/link", "infobox/node"], function (Link, Node) {
new Link(config, el, router, d)
}
self.gotoLocation = function (d) {
console.log("goto location called with ", d)
create()
new Location(config, el, router, d)
}
return self
}
})