Ready for first submission to splunkbase
This commit is contained in:
parent
0ac6c7890d
commit
749cfe89e1
12
dist/torque.full.js
vendored
12
dist/torque.full.js
vendored
File diff suppressed because one or more lines are too long
13
dist/torque.full.uncompressed.js
vendored
13
dist/torque.full.uncompressed.js
vendored
@ -4246,15 +4246,18 @@ var Profiler = require('../profiler');
|
|||||||
|
|
||||||
if (!self.managers[coord.zoom + "_" + coord.x + "_" + coord.y]) {
|
if (!self.managers[coord.zoom + "_" + coord.x + "_" + coord.y]) {
|
||||||
|
|
||||||
self.managers[coord.zoom + "_" + coord.x + "_" + coord.y] = new self.managerClass({
|
var tileQuery = self.searchQuery + " | search longitude > "
|
||||||
id: self.searchQuery + "::" + coord.zoom + "_" + coord.x + "_" + coord.y,
|
|
||||||
cache: 86400,
|
|
||||||
timeout: 86400,
|
|
||||||
search: self.searchQuery + " longitude > "
|
|
||||||
+ tileBounds.minLng.toFixed(3)
|
+ tileBounds.minLng.toFixed(3)
|
||||||
+ " latitude > " + tileBounds.minLat.toFixed(3)
|
+ " latitude > " + tileBounds.minLat.toFixed(3)
|
||||||
+ " longitude < " + tileBounds.maxLng.toFixed(3)
|
+ " longitude < " + tileBounds.maxLng.toFixed(3)
|
||||||
+ " latitude < " + tileBounds.maxLat.toFixed(3) + "| bucket _time span=" + self.span + " | eval lat = floor(('latitude' + 90.000000) / " + self.latspan + " ) | eval lon = floor(('longitude' + 180.000000) / " + self.lonspan + ") | eval latlon = lat.\"-\".lon | chart count by latlon,_time limit=128"
|
+ " latitude < " + tileBounds.maxLat.toFixed(3) + "| bucket _time span=" + self.span + " | eval lat = floor(('latitude' + 90.000000) / " + self.latspan + " ) | eval lon = floor(('longitude' + 180.000000) / " + self.lonspan + ") | eval latlon = lat.\"-\".lon | chart count by latlon,_time limit=128"
|
||||||
|
|
||||||
|
|
||||||
|
self.managers[coord.zoom + "_" + coord.x + "_" + coord.y] = new self.managerClass({
|
||||||
|
id: self.searchQuery + Date.now() + "::" + coord.zoom + "_" + coord.x + "_" + coord.y,
|
||||||
|
cache: 86400,
|
||||||
|
timeout: 86400,
|
||||||
|
search: tileQuery
|
||||||
});
|
});
|
||||||
|
|
||||||
self.managers[coord.zoom + "_" + coord.x + "_" + coord.y].data("results", {count: 0, output_mode: 'json_rows'}).on("data", function (results) {
|
self.managers[coord.zoom + "_" + coord.x + "_" + coord.y].data("results", {count: 0, output_mode: 'json_rows'}).on("data", function (results) {
|
||||||
|
4
dist/torque.js
vendored
4
dist/torque.js
vendored
File diff suppressed because one or more lines are too long
13
dist/torque.uncompressed.js
vendored
13
dist/torque.uncompressed.js
vendored
@ -4246,15 +4246,18 @@ var Profiler = require('../profiler');
|
|||||||
|
|
||||||
if (!self.managers[coord.zoom + "_" + coord.x + "_" + coord.y]) {
|
if (!self.managers[coord.zoom + "_" + coord.x + "_" + coord.y]) {
|
||||||
|
|
||||||
self.managers[coord.zoom + "_" + coord.x + "_" + coord.y] = new self.managerClass({
|
var tileQuery = self.searchQuery + " | search longitude > "
|
||||||
id: self.searchQuery + "::" + coord.zoom + "_" + coord.x + "_" + coord.y,
|
|
||||||
cache: 86400,
|
|
||||||
timeout: 86400,
|
|
||||||
search: self.searchQuery + " longitude > "
|
|
||||||
+ tileBounds.minLng.toFixed(3)
|
+ tileBounds.minLng.toFixed(3)
|
||||||
+ " latitude > " + tileBounds.minLat.toFixed(3)
|
+ " latitude > " + tileBounds.minLat.toFixed(3)
|
||||||
+ " longitude < " + tileBounds.maxLng.toFixed(3)
|
+ " longitude < " + tileBounds.maxLng.toFixed(3)
|
||||||
+ " latitude < " + tileBounds.maxLat.toFixed(3) + "| bucket _time span=" + self.span + " | eval lat = floor(('latitude' + 90.000000) / " + self.latspan + " ) | eval lon = floor(('longitude' + 180.000000) / " + self.lonspan + ") | eval latlon = lat.\"-\".lon | chart count by latlon,_time limit=128"
|
+ " latitude < " + tileBounds.maxLat.toFixed(3) + "| bucket _time span=" + self.span + " | eval lat = floor(('latitude' + 90.000000) / " + self.latspan + " ) | eval lon = floor(('longitude' + 180.000000) / " + self.lonspan + ") | eval latlon = lat.\"-\".lon | chart count by latlon,_time limit=128"
|
||||||
|
|
||||||
|
|
||||||
|
self.managers[coord.zoom + "_" + coord.x + "_" + coord.y] = new self.managerClass({
|
||||||
|
id: self.searchQuery + Date.now() + "::" + coord.zoom + "_" + coord.x + "_" + coord.y,
|
||||||
|
cache: 86400,
|
||||||
|
timeout: 86400,
|
||||||
|
search: tileQuery
|
||||||
});
|
});
|
||||||
|
|
||||||
self.managers[coord.zoom + "_" + coord.x + "_" + coord.y].data("results", {count: 0, output_mode: 'json_rows'}).on("data", function (results) {
|
self.managers[coord.zoom + "_" + coord.x + "_" + coord.y].data("results", {count: 0, output_mode: 'json_rows'}).on("data", function (results) {
|
||||||
|
@ -356,15 +356,18 @@
|
|||||||
|
|
||||||
if (!self.managers[coord.zoom + "_" + coord.x + "_" + coord.y]) {
|
if (!self.managers[coord.zoom + "_" + coord.x + "_" + coord.y]) {
|
||||||
|
|
||||||
self.managers[coord.zoom + "_" + coord.x + "_" + coord.y] = new self.managerClass({
|
var tileQuery = self.searchQuery + " | search longitude > "
|
||||||
id: self.searchQuery + "::" + coord.zoom + "_" + coord.x + "_" + coord.y,
|
|
||||||
cache: 86400,
|
|
||||||
timeout: 86400,
|
|
||||||
search: self.searchQuery + " longitude > "
|
|
||||||
+ tileBounds.minLng.toFixed(3)
|
+ tileBounds.minLng.toFixed(3)
|
||||||
+ " latitude > " + tileBounds.minLat.toFixed(3)
|
+ " latitude > " + tileBounds.minLat.toFixed(3)
|
||||||
+ " longitude < " + tileBounds.maxLng.toFixed(3)
|
+ " longitude < " + tileBounds.maxLng.toFixed(3)
|
||||||
+ " latitude < " + tileBounds.maxLat.toFixed(3) + "| bucket _time span=" + self.span + " | eval lat = floor(('latitude' + 90.000000) / " + self.latspan + " ) | eval lon = floor(('longitude' + 180.000000) / " + self.lonspan + ") | eval latlon = lat.\"-\".lon | chart count by latlon,_time limit=128"
|
+ " latitude < " + tileBounds.maxLat.toFixed(3) + "| bucket _time span=" + self.span + " | eval lat = floor(('latitude' + 90.000000) / " + self.latspan + " ) | eval lon = floor(('longitude' + 180.000000) / " + self.lonspan + ") | eval latlon = lat.\"-\".lon | chart count by latlon,_time limit=128"
|
||||||
|
|
||||||
|
|
||||||
|
self.managers[coord.zoom + "_" + coord.x + "_" + coord.y] = new self.managerClass({
|
||||||
|
id: self.searchQuery + Date.now() + "::" + coord.zoom + "_" + coord.x + "_" + coord.y,
|
||||||
|
cache: 86400,
|
||||||
|
timeout: 86400,
|
||||||
|
search: tileQuery
|
||||||
});
|
});
|
||||||
|
|
||||||
self.managers[coord.zoom + "_" + coord.x + "_" + coord.y].data("results", {count: 0, output_mode: 'json_rows'}).on("data", function (results) {
|
self.managers[coord.zoom + "_" + coord.x + "_" + coord.y].data("results", {count: 0, output_mode: 'json_rows'}).on("data", function (results) {
|
||||||
|
Loading…
Reference in New Issue
Block a user