Loading js/leaflet/leaflet.camera-view-marker.measure.js +29 −2 Original line number Original line Diff line number Diff line Loading @@ -302,6 +302,9 @@ placeSlidingMarker: function(angle,distance){ placeSlidingMarker: function(angle,distance){ // temporary sliding marker this._hideMeasureMarkersTTs(); var p1_ll = this._measureBase; var p1_ll = this._measureBase; var p2_ll = p1_ll.CoordinatesOf(angle,distance); var p2_ll = p1_ll.CoordinatesOf(angle,distance); Loading Loading @@ -341,6 +344,8 @@ removeSlidingMarker: function(){ removeSlidingMarker: function(){ this._showMeasureMarkersTTs(); if (this._slidingMarker != undefined){ if (this._slidingMarker != undefined){ this._layerPaint.removeLayer(this._slidingMarker); this._layerPaint.removeLayer(this._slidingMarker); Loading Loading @@ -448,8 +453,6 @@ _syncMeasureMarkersToBasePoint: function(e){ _syncMeasureMarkersToBasePoint: function(e){ console.log("sync measure markers"); if (this._measureMarkers.length!=0){ if (this._measureMarkers.length!=0){ if ( if ( (this._measureBase.lat!=this._latlng.lat)&& (this._measureBase.lat!=this._latlng.lat)&& Loading Loading @@ -489,6 +492,8 @@ this._map.on('mousemove',this.setMarkerPoint,this); this._map.on('mousemove',this.setMarkerPoint,this); this._map.on ('mouseup',this._mouseUp_M,this); this._map.on ('mouseup',this._mouseUp_M,this); this._hideMeasureMarkersTTs(); } } }, }, Loading @@ -505,6 +510,8 @@ this.draggedMarker._index = null; this.draggedMarker._index = null; this._showMeasureMarkersTTs(); }, }, _updateMeasureMarkersIndices:function(){ _updateMeasureMarkersIndices:function(){ Loading @@ -517,6 +524,26 @@ }, }, _hideMeasureMarkersTTs:function(){ var self = this; this._measureMarkers.forEach(function(c,i){ self._measureMarkers[i].closeTooltip(); }); }, _showMeasureMarkersTTs:function(){ var self = this; this._measureMarkers.forEach(function(c,i){ self._measureMarkers[i].openTooltip(); }); } }); }); }(this,document)); }(this,document)); js/ui.css +11 −0 Original line number Original line Diff line number Diff line Loading @@ -58,6 +58,17 @@ html, body, #x3d_wrapper { position:absolute; position:absolute; top: 16px; top: 16px; left: 3px; left: 3px; /*background-color: rgba(0,0,0,0); border-color: rgba(0,0,0,0); text-shadow: -1px -1px 0 rgba(0,0,0,0), 1px -1px 0 rgba(0,0,0,0), -1px 1px 0 rgba(0,0,0,0), 1px 1px 0 rgba(0,0,0,0); box-shadow: none;*/ } } .leaflet-tooltip-left.measurementtooltip::before { .leaflet-tooltip-left.measurementtooltip::before { Loading js/ui_init.js +2 −0 Original line number Original line Diff line number Diff line Loading @@ -547,6 +547,8 @@ function x3d_setShiftSpeed(){ function x3d_initial_camera_placement(mode){ function x3d_initial_camera_placement(mode){ console.log("x3d_initial_camera_placement"); if (mode==undefined){ if (mode==undefined){ // reset horizontal // reset horizontal mode = "r"; mode = "r"; Loading js/x3dom_init.js +9 −0 Original line number Original line Diff line number Diff line Loading @@ -771,6 +771,9 @@ X3DOMObject.Marker.prototype._registerEvents = function(){ X3DOMObject.Marker.mouseUp = function(){ X3DOMObject.Marker.mouseUp = function(){ //console.log("Drag STOP"); Map.marker._showMeasureMarkersTTs(); var elem = Scene.draggedTransformNode.parent().parent(); var elem = Scene.draggedTransformNode.parent().parent(); // click is already bound // click is already bound Loading Loading @@ -798,6 +801,8 @@ X3DOMObject.Marker.mouseUp = function(){ // from https://x3dom.org/x3dom/example/MovingObjectsWithDOMEvents.html // from https://x3dom.org/x3dom/example/MovingObjectsWithDOMEvents.html X3DOMObject.Marker.dragStart = function(elem){ X3DOMObject.Marker.dragStart = function(elem){ //console.log("Drag START"); Scene.markerToDrag=elem; Scene.markerToDrag=elem; // move up from <shape> to <transform> // move up from <shape> to <transform> Loading Loading @@ -831,8 +836,12 @@ X3DOMObject.Marker.dragStart = function(elem){ } } // gets called when existing marker is dragged X3DOMObject.Marker.mouseMove = function(event){ X3DOMObject.Marker.mouseMove = function(event){ // hide ToolTips with meters and staff Map.marker._hideMeasureMarkersTTs(); Scene.markerdragged = true; Scene.markerdragged = true; var sphere = Scene.draggedTransformNode.parent().parent(); var sphere = Scene.draggedTransformNode.parent().parent(); Loading Loading
js/leaflet/leaflet.camera-view-marker.measure.js +29 −2 Original line number Original line Diff line number Diff line Loading @@ -302,6 +302,9 @@ placeSlidingMarker: function(angle,distance){ placeSlidingMarker: function(angle,distance){ // temporary sliding marker this._hideMeasureMarkersTTs(); var p1_ll = this._measureBase; var p1_ll = this._measureBase; var p2_ll = p1_ll.CoordinatesOf(angle,distance); var p2_ll = p1_ll.CoordinatesOf(angle,distance); Loading Loading @@ -341,6 +344,8 @@ removeSlidingMarker: function(){ removeSlidingMarker: function(){ this._showMeasureMarkersTTs(); if (this._slidingMarker != undefined){ if (this._slidingMarker != undefined){ this._layerPaint.removeLayer(this._slidingMarker); this._layerPaint.removeLayer(this._slidingMarker); Loading Loading @@ -448,8 +453,6 @@ _syncMeasureMarkersToBasePoint: function(e){ _syncMeasureMarkersToBasePoint: function(e){ console.log("sync measure markers"); if (this._measureMarkers.length!=0){ if (this._measureMarkers.length!=0){ if ( if ( (this._measureBase.lat!=this._latlng.lat)&& (this._measureBase.lat!=this._latlng.lat)&& Loading Loading @@ -489,6 +492,8 @@ this._map.on('mousemove',this.setMarkerPoint,this); this._map.on('mousemove',this.setMarkerPoint,this); this._map.on ('mouseup',this._mouseUp_M,this); this._map.on ('mouseup',this._mouseUp_M,this); this._hideMeasureMarkersTTs(); } } }, }, Loading @@ -505,6 +510,8 @@ this.draggedMarker._index = null; this.draggedMarker._index = null; this._showMeasureMarkersTTs(); }, }, _updateMeasureMarkersIndices:function(){ _updateMeasureMarkersIndices:function(){ Loading @@ -517,6 +524,26 @@ }, }, _hideMeasureMarkersTTs:function(){ var self = this; this._measureMarkers.forEach(function(c,i){ self._measureMarkers[i].closeTooltip(); }); }, _showMeasureMarkersTTs:function(){ var self = this; this._measureMarkers.forEach(function(c,i){ self._measureMarkers[i].openTooltip(); }); } }); }); }(this,document)); }(this,document));
js/ui.css +11 −0 Original line number Original line Diff line number Diff line Loading @@ -58,6 +58,17 @@ html, body, #x3d_wrapper { position:absolute; position:absolute; top: 16px; top: 16px; left: 3px; left: 3px; /*background-color: rgba(0,0,0,0); border-color: rgba(0,0,0,0); text-shadow: -1px -1px 0 rgba(0,0,0,0), 1px -1px 0 rgba(0,0,0,0), -1px 1px 0 rgba(0,0,0,0), 1px 1px 0 rgba(0,0,0,0); box-shadow: none;*/ } } .leaflet-tooltip-left.measurementtooltip::before { .leaflet-tooltip-left.measurementtooltip::before { Loading
js/ui_init.js +2 −0 Original line number Original line Diff line number Diff line Loading @@ -547,6 +547,8 @@ function x3d_setShiftSpeed(){ function x3d_initial_camera_placement(mode){ function x3d_initial_camera_placement(mode){ console.log("x3d_initial_camera_placement"); if (mode==undefined){ if (mode==undefined){ // reset horizontal // reset horizontal mode = "r"; mode = "r"; Loading
js/x3dom_init.js +9 −0 Original line number Original line Diff line number Diff line Loading @@ -771,6 +771,9 @@ X3DOMObject.Marker.prototype._registerEvents = function(){ X3DOMObject.Marker.mouseUp = function(){ X3DOMObject.Marker.mouseUp = function(){ //console.log("Drag STOP"); Map.marker._showMeasureMarkersTTs(); var elem = Scene.draggedTransformNode.parent().parent(); var elem = Scene.draggedTransformNode.parent().parent(); // click is already bound // click is already bound Loading Loading @@ -798,6 +801,8 @@ X3DOMObject.Marker.mouseUp = function(){ // from https://x3dom.org/x3dom/example/MovingObjectsWithDOMEvents.html // from https://x3dom.org/x3dom/example/MovingObjectsWithDOMEvents.html X3DOMObject.Marker.dragStart = function(elem){ X3DOMObject.Marker.dragStart = function(elem){ //console.log("Drag START"); Scene.markerToDrag=elem; Scene.markerToDrag=elem; // move up from <shape> to <transform> // move up from <shape> to <transform> Loading Loading @@ -831,8 +836,12 @@ X3DOMObject.Marker.dragStart = function(elem){ } } // gets called when existing marker is dragged X3DOMObject.Marker.mouseMove = function(event){ X3DOMObject.Marker.mouseMove = function(event){ // hide ToolTips with meters and staff Map.marker._hideMeasureMarkersTTs(); Scene.markerdragged = true; Scene.markerdragged = true; var sphere = Scene.draggedTransformNode.parent().parent(); var sphere = Scene.draggedTransformNode.parent().parent(); Loading