Rufus Pollock
c1c1881660
[#129,refactor][l]: ([s] in effort) rename Document to Record - fixes #129 .
2012-05-31 21:08:00 +01:00
Rufus Pollock
ea6f051aba
[view/map,bugfix][xs]: be more cautious about assuming a location field actually gains geodata (and geojson specifically).
...
* At present giving data with e.g. { location: 'New York'} would lead the view to crash on a JSON parsing error.
2012-05-27 02:48:54 +01:00
Rufus Pollock
c6d4116cba
[#79,refactor][s]: switch from (old) jquery.mustache to latest mustache.js - fixes #79 .
...
* This mustache has support for nested values e.g. {{sub.x.y}}
* Specifically mustache.js as of Fri Feb 24 09:58:31 2012 +0100 2f135e2e15dcc3c61385212261faaf00597bae10
2012-05-27 01:27:26 +01:00
Rufus Pollock
cbe668f0e3
[bugfix,view-map][xs]: issue with map not rendering due to calling redraw in render (introduced in 62a790ceb907026e3c076bbf5e2148ff3033855f).
2012-05-22 11:46:09 +01:00
Rufus Pollock
62a790ceb9
[view/map,bugfix,refactor][s]: correct bug due to misinterpretation (?) of Backbone reset and refactor so we redraw on initialize.
...
* Bug: dataset.currentDocuments.reset was being interpreted as empty rather than a re-fill of new documents and was therefore not re-adding currentDocuments items to the list of features. Fixed this.
* Discovered bug during a refactor. Refactor removed listener for query:done as this will be covered by currentDocuments.reset or similar. This also means we can initialize the view with a dataset already containing data and it will render w/o need to call query() again.
2012-05-20 13:43:33 +01:00
Rufus Pollock
e4aa4e546c
[#82,flash/notify,refactor][m]: convert notify / flash messages to use events rather than call to a central function.
2012-04-26 22:45:28 +01:00
amercader
0b6840819e
[view/map,bugfix] Reapply fix from 5eb65f, lost due to a bad merge
2012-04-25 12:24:43 +01:00
amercader
a516fc1deb
[view/map][s] Listen to changes in the documents and update the map accordingly
2012-04-24 19:06:51 +01:00
amercader
653eda6f43
[view/map][xs] Small fix in the getBounds method (does not work for multi-geometries)
2012-04-24 18:53:19 +01:00
amercader
3597974469
[view/map] Don't show GeoJSON geometries in the popup as they can be quite big
2012-04-24 18:42:52 +01:00
amercader
1655690bc8
[view/map][xs] Fix lat/lon parsing (eg geoms in Greenwich can have lon 0)
2012-04-24 14:19:03 +01:00
amercader
9ed43dfdc6
[view/map] Geometries can be provided as GeoJSON strings (useful e.g. in CSV files)
2012-04-23 18:24:53 +01:00
amercader
c5da3a820e
Merge branch 'master' of github.com:okfn/recline
...
Conflicts:
src/view-map.js
2012-04-23 11:37:51 +01:00
Rufus Pollock
24295e78a2
[view/map][s]: make map view much more robust regarding bad or missing data in location fields.
2012-04-21 23:52:22 +01:00
Rufus Pollock
793fde4617
[bugfix,view-map][s]: 30m to track down and fix a bug whereby map view was ignoring config passed to it.
...
* setupGeometryFields was running (and overwriting) even if fields set in state passed in (which I don't think we want).
2012-04-21 23:47:52 +01:00
Rufus Pollock
5eb65f2b77
[view-map,bugfix][xs]: only call invalidateMapsize on view:show if map defined.
...
* this issue arose in case when map is the first view being shown.
2012-04-17 05:27:09 +01:00
amercader
eac494cb84
[merge] from upstream master
2012-04-16 17:45:25 +02:00
amercader
1dbd8bf957
[view/map] Make auto zoom configurable
2012-04-16 11:04:05 +02:00
amercader
ac371773d0
[map/view] Zoom to current features when updating the map view
2012-04-15 23:49:48 +02:00
Rufus Pollock
d71203e69a
[#88,refactor/state][s]: map view now supports state (used for specifying geometry/lat/lon fields).
2012-04-15 17:29:29 +01:00
Rufus Pollock
cb51f485c0
[#81,css][s]: map view uses recline- naming for top level container plus minor simplifying rename for graph css ( fixes #81 ).
2012-04-15 16:53:46 +01:00
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