Ready for first submission to splunkbase

This commit is contained in:
Chris Whong 2015-09-16 23:22:48 -04:00
parent 0ac6c7890d
commit 749cfe89e1
5 changed files with 32 additions and 23 deletions

12
dist/torque.full.js vendored

File diff suppressed because one or more lines are too long

View File

@ -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

File diff suppressed because one or more lines are too long

View File

@ -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) {

View File

@ -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) {