12 Commits

Author SHA1 Message Date
amercader
9bffad30ad [view/map][xs] Fix typo 2012-04-12 08:31:01 +01:00
amercader
45c05a3334 [view/map] Ignore empty fields and replace non-crossbrowser commands 2012-04-11 18:47:15 +01:00
amercader
9080fb8c6b [#64,view/map] Add source docs and links from home page 2012-04-11 17:33:17 +01:00
amercader
a8018c4e18 [#64,view/map] Add small editor for user input
Right now the form lets you define the fields where the geometries are
stored (either in a single GeoJSON field or a pair of lat/lon fields).

When adding features, if wrong geometries are found (ie wrong field
values), the process will stop and an error notice will be shown.
2012-04-11 14:15:39 +01:00
amercader
e65b3f5418 [merge] from upstream master 2012-04-11 10:38:47 +01:00
Rufus Pollock
11f4fb1151 [#78,tidying][s]: fixes for as many jshint issues as possible in src/*.js. 2012-04-10 20:21:18 +01:00
amercader
23c6a6e81b [view/map][s] Recalculate Leaflet sizes when showing the container div 2012-04-10 17:14:22 +01:00
amercader
5ff7260396 [#64,view/map] More flexible geom field detection (case insensitive and checks 'location') 2012-04-10 17:09:06 +01:00
amercader
9f0c0d753a [#64,view/map] Listen to changes in documents to refresh the map
Added new listeners to refresh the markers whenever a document(s) is
added or removed, or all documents are reset. Instead of recreating
everytime all markers, only the necessary ones are added or removed.
2012-04-10 13:16:37 +01:00
Rufus Pollock
9a3c0523c6 [#78,tidying][xs]: add /*jshint multistr:true */ to all files where we use multiline strings to avoid unnecessary jshint warnings. 2012-04-08 09:33:20 +01:00
amercader
278d244ad1 [#64,map] Support GeoJSON and lat/lon geometry fields
The view will check for a set of default field names to see if there is
a field containing geometries in GeoJSON format. If not, will check
similarly for a pair of fields with lat/lon values.
2012-04-04 17:56:01 +01:00
amercader
7df22effa3 [#64,map] Preliminary work on the map view
Basic map view that plots points into a Leaflet map. Right now only
models with two "lat"/"lon" fields are supported. Some problems
regarding zooming to markers bounds when div not visible.
2012-04-04 14:27:44 +01:00