From 80626485cea44f62109b855b54a410f943c6524f Mon Sep 17 00:00:00 2001 From: Rufus Pollock Date: Mon, 22 Oct 2012 21:39:18 +0100 Subject: [PATCH] [#223,map][xs]: small improvements to in file docs for Map view. --- src/view.map.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/view.map.js b/src/view.map.js index b34066a1..8199dae2 100644 --- a/src/view.map.js +++ b/src/view.map.js @@ -8,9 +8,14 @@ this.recline.View = this.recline.View || {}; // ## Map view for a Dataset using Leaflet mapping library. // // This view allows to plot gereferenced records on a map. The location -// information can be provided either via a field with -// [GeoJSON](http://geojson.org) objects or two fields with latitude and -// longitude coordinates. +// information can be provided in 2 ways: +// +// 1. Via a single field. This field must be either a geo_point or +// [GeoJSON](http://geojson.org) object +// 2. Via two fields with latitude and longitude coordinates. +// +// Which fields in the data these correspond to can be configured via the state +// (and are guessed if no info is provided). // // Initialization arguments are as standard for Dataset Views. State object may // have the following (optional) configuration options: @@ -21,6 +26,9 @@ this.recline.View = this.recline.View || {}; // geomField: {id of field containing geometry in the dataset} // lonField: {id of field containing longitude in the dataset} // latField: {id of field containing latitude in the dataset} +// autoZoom: true, +// // use cluster support +// cluster: false // } // //