Class AjaxSolr.AbstractSpatialWidget
Extends
AjaxSolr.AbstractWidget.
AbstractSpatialWidget
Defined in: AbstractSpatialWidget.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Offers an interface to the local parameters used by the Spatial Solr plugin.
|
Method Attributes | Method Name and Description |
---|---|
clear()
Removes the Spatial Solr local parameters.
|
|
set(params)
Sets the Spatial Solr local parameters.
|
- Methods borrowed from class AjaxSolr.AbstractWidget:
- afterRequest, beforeRequest, constructor, doRequest, init
Class Detail
AjaxSolr.AbstractSpatialWidget()
Offers an interface to the local parameters used by the Spatial Solr plugin.
- See:
- http://www.jteam.nl/news/spatialsolr
Method Detail
clear()
Removes the Spatial Solr local parameters.
set(params)
Sets the Spatial Solr local parameters.
- Parameters:
- {Object} params
- The local parameters to set.
- {Number} params.lat
- Latitude of the center of the search area.
- {Number} params.lng
- Longitude of the center of the search area.
- {Number} params.radius
- Radius of the search area.
- {String} params.unit Optional
- Unit the distances should be calculated in: "km" or "miles".
- {String} params.calc Optional
- GeoDistanceCalculator that will be used to calculate the distances. "arc" for ArchGeoDistanceCalculator and "plane" for PlaneGeoDistanceCalculator.
- {Number} params.threadCount Optional
- Number of threads that will be used by the ThreadedDistanceFilter.