Commit 42bac9b7 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

test fix

parent 79a151be
...@@ -127,6 +127,7 @@ ...@@ -127,6 +127,7 @@
var hecs = this.getHCState(); var hecs = this.getHCState();
if (param.target){ if (param.target){
latlng = param.latlng; latlng = param.latlng;
if (hecs){ if (hecs){
...@@ -147,6 +148,7 @@ ...@@ -147,6 +148,7 @@
} }
this._latlng = latlng; this._latlng = latlng;
this._measureBase = latlng;
this._updateCameraViewMarker(); this._updateCameraViewMarker();
}, },
......
...@@ -448,6 +448,8 @@ ...@@ -448,6 +448,8 @@
_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)&&
......
...@@ -368,11 +368,11 @@ function parse_light_init_response(response,state,mode){ ...@@ -368,11 +368,11 @@ function parse_light_init_response(response,state,mode){
Scene = new X3DOMObject(element,Data,{}); Scene = new X3DOMObject(element,Data,{});
Scene.initResize(); Scene.initResize();
Map = new LeafletObject('leaflet_map',Data,{},function(){ Map = new LeafletObject('leaflet_map',Data,{},function(){
$.getScript("js/x3dom/x3dom-full.debug.js",function(){ $.getScript("js/x3dom/x3dom-full.debug.js",function(){
console.log("loaded x3dom"); console.log("loaded x3dom");
//wait until it DOM is extended //wait until it DOM is extended
x3dom.runtime.ready = function(){ x3dom.runtime.ready = function(){
...@@ -387,7 +387,7 @@ function parse_light_init_response(response,state,mode){ ...@@ -387,7 +387,7 @@ function parse_light_init_response(response,state,mode){
}; };
}); });
}); });
}else{ }else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment