Skip to content

Commit

Permalink
map panel documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Rashid Khan committed Apr 20, 2013
1 parent bc55873 commit 5eb5f2c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions panels/map/module.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
/*
## Map
LOL. Should this even be documented? Zach's map panel is going to ruin this one.
For serious. This shades a map of the world, the US or Europe with the number of
events that match the query. Uses 2 letter country codes and nothing else. This uses
a terms facet. Its probably safe as long as you point it at the right field. Nach.
There's no way to query sequentially here, so I'm going to hit them all at once!
### Parameters
* query :: A single query string, not and array. This panel can only handle one
query at a time.
* map :: 'world', 'us' or 'europe'
* colors :: an array of colors to use for the regions of the map. If this is a 2
element array, jquerymap will generate shades between these colors
* size :: How big to make the facet. Higher = more countries
* exclude :: Exlude the array of counties
* spyable :: Show the 'eye' icon that reveals the last ES query
* index_limit :: This does nothing yet. Eventually will limit the query to the first
N indices
### Group Events
#### Sends
* get_time :: On panel initialization get time range to query
#### Receives
* time :: An object containing the time range to use and the index(es) to query
* query :: An Array of queries, even if its only one
*/

angular.module('kibana.map', [])
.controller('map', function($scope, eventBus) {

Expand Down

0 comments on commit 5eb5f2c

Please sign in to comment.