Merge pull request #537 from Megala21/new_3

Adding improvement for showing path
revert-dabc3590
sinthuja 8 years ago committed by GitHub
commit a1d653fc39

@ -129,7 +129,11 @@ var getConfig, validate, getMode, getSchema, getData, registerCallBackforPush;
var filter = { var filter = {
"query": luceneQuery, "query": luceneQuery,
"start": 0, "start": 0,
"count": limit "count": limit,
"sortBy" : [{
"field" : "timeStamp",
"sortType" : "ASC"
}]
}; };
result = connector.search(loggedInUser, tableName, stringify(filter)).getMessage(); result = connector.search(loggedInUser, tableName, stringify(filter)).getMessage();
} else { } else {

@ -97,12 +97,12 @@ function initializeMap() {
zoom: 14, zoom: 14,
center: [6.927078, 79.861243], center: [6.927078, 79.861243],
layers: [defaultOSM, defaultTFL], layers: [defaultOSM, defaultTFL],
zoomControl: false, zoomControl: true,
attributionControl: false, attributionControl: false,
maxZoom: 20, maxZoom: 20,
maxNativeZoom: 18 maxNativeZoom: 18
}); });
map.zoomControl.setPosition('bottomleft');
map.on('click', function (e) { map.on('click', function (e) {
$.UIkit.offcanvas.hide();//[force = false] no animation $.UIkit.offcanvas.hide();//[force = false] no animation
}); });
@ -290,9 +290,7 @@ function focusOnSpatialObject(objectId) {
}); });
return false; return false;
} }
if (selectedSpatialObject != objectId) {
clearFocus(); // Clear current focus if any clearFocus(); // Clear current focus if any
}
selectedSpatialObject = objectId; // (global) Why not use 'var' other than implicit declaration http://stackoverflow.com/questions/1470488/what-is-the-function-of-the-var-keyword-and-when-to-use-it-or-omit-it#answer-1471738 selectedSpatialObject = objectId; // (global) Why not use 'var' other than implicit declaration http://stackoverflow.com/questions/1470488/what-is-the-function-of-the-var-keyword-and-when-to-use-it-or-omit-it#answer-1471738
console.log("Selected " + objectId + " type " + spatialObject.type); console.log("Selected " + objectId + " type " + spatialObject.type);

Loading…
Cancel
Save