|
@ -13,9 +13,8 @@ exports._cleanNavigation = function() { |
|
|
this._navigationReleaseOverload = function () {}; |
|
|
this._navigationReleaseOverload = function () {}; |
|
|
|
|
|
|
|
|
// clean up previous navigation items
|
|
|
// clean up previous navigation items
|
|
|
var wrapper = document.getElementById('network-navigation_wrapper'); |
|
|
|
|
|
if (wrapper && wrapper.parentNode) { |
|
|
|
|
|
wrapper.parentNode.removeChild(wrapper); |
|
|
|
|
|
|
|
|
if (this.navigationDivs && this.navigationDivs['wrapper'] && this.navigationDivs['wrapper'].parentNode) { |
|
|
|
|
|
this.navigationDivs['wrapper'].parentNode.removeChild(this.navigationDivs['wrapper']); |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
@ -35,7 +34,6 @@ exports._loadNavigationElements = function() { |
|
|
var navigationDivActions = ['_moveUp','_moveDown','_moveLeft','_moveRight','_zoomIn','_zoomOut','_zoomExtent']; |
|
|
var navigationDivActions = ['_moveUp','_moveDown','_moveLeft','_moveRight','_zoomIn','_zoomOut','_zoomExtent']; |
|
|
|
|
|
|
|
|
this.navigationDivs['wrapper'] = document.createElement('div'); |
|
|
this.navigationDivs['wrapper'] = document.createElement('div'); |
|
|
this.navigationDivs['wrapper'].id = 'network-navigation_wrapper'; |
|
|
|
|
|
this.frame.appendChild(this.navigationDivs['wrapper']); |
|
|
this.frame.appendChild(this.navigationDivs['wrapper']); |
|
|
|
|
|
|
|
|
for (var i = 0; i < navigationDivs.length; i++) { |
|
|
for (var i = 0; i < navigationDivs.length; i++) { |
|
|