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
|
@ -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
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue