33 Commits

Author SHA1 Message Date
Rufus Pollock
35a5f32163 [#362,view/map][s]: disable auto-turn on of map clustering above a certain number of points - fixes #362. 2013-06-22 18:14:50 +01:00
Dan Wilson
155ce78828 Merge pull request #354 from okfn/issue-351
Event handling cleanup
2013-05-15 02:25:43 -07:00
Dan Wilson
6883d8a1c4 Fixed invalid HTML in the MapMenu template. Issue #323. 2013-05-14 18:38:54 +01:00
Dan Wilson
5ef821c92a Use listenTo() rather than bind() in the views so that the events get unbound upon removal. 2013-05-14 12:43:22 +01:00
Dan Wilson
8ea1a81c0a Updated code and tests to stop recline clobbering view.el. Issue #350. 2013-05-13 18:52:37 +01:00
Dan Wilson
b72dd0fb62 Enabled strict mode, and fixed issues raised. 2013-05-13 16:53:55 +01:00
Rufus Pollock
df935091fd [#244,view/map][m]: support for customizing rendering of map features in all ways supported by Leaflet - fixes #244.
* This automatically provides support for things like custom markers via
  pointToLayer etc

* Also a significant bugfix for a bug that surfaced when using different marker
  (like the CircleMarker) - and which took ~30m to track down. Bug was that the
  call to zoom (or, more specifically, call to getBounds) occurred before
  features were added to the map and getBounds for some objects (such as
  circles) requires map to exit (so you can do a projection!)
2012-10-23 00:19:59 +01:00
Rufus Pollock
80626485ce [#223,map][xs]: small improvements to in file docs for Map view. 2012-10-22 21:39:18 +01:00
Dominik Moritz
16fc21ac03 fix popups (all popups were the same) 2012-09-25 11:49:43 +01:00
Dominik Moritz
2d26afb435 Merge branch 'master' into markercluster
Conflicts:
	src/view.map.js
2012-09-25 11:49:16 +01:00
Dominik Moritz
79c262e25b update markercluster to latest version 2012-09-12 14:17:03 +01:00
Dominik Moritz
3ecd0b875b write a test for automatic clustering and fix render issue 2012-09-12 14:10:50 +01:00
Michael Bauer
881fee5fe7 Fixes #230 - updated the feature popup code
The feature popup code was broken since commit
9b1bedc97c6febd236023e1ec40114ed288eecd4
2012-09-12 12:48:59 +02:00
Dominik Moritz
89890c8acb automatically enable clustering if there is a large number of markers 2012-09-12 01:52:58 +01:00
Dominik Moritz
e167591253 Updated documentation and tutorials 2012-09-12 00:50:20 +01:00
Dominik Moritz
751cd095ce cluster markers to handle larger datasets 2012-09-12 00:09:07 +01:00
Rufus Pollock
5542e2e23b [#77,view/map][s]: support for infobox method to allow customization of popup infoboxes. 2012-09-08 19:27:42 +01:00
Dominik Moritz
eed8024391 cleanup 2012-09-01 22:22:30 +01:00
Dominik Moritz
419f2e395c Hack because of leaflet issue (https://github.com/CloudMade/Leaflet/issues/966) 2012-09-01 22:08:07 +01:00
Dominik Moritz
8049f73f09 cleanup 2012-09-01 22:07:44 +01:00
Dominik Moritz
69d1cfbdf2 satisfy lint 2012-09-01 21:07:01 +01:00
Dominik Moritz
9b1bedc97c Adapt to api changes (featureparse event does not exist anymore) 2012-09-01 21:04:57 +01:00
Dominik Moritz
fb81d51bc6 Updated leaflet to 0.4.4 2012-08-27 00:56:56 +01:00
Rufus Pollock
02d152c5ad [#153,#212,view/map][m]: fixes #153 bug re map rendering (see issue for more) and in process did refactoring of map view in line with #212.
* multiview: refactored to call render on all views as that is new setup for #212 (and also needed for #153)
* tutorial-views: call render now which fixes bug (this was specific issue reported in #153)
2012-08-15 11:51:08 +01:00
Rufus Pollock
6f78b7b1be [#211,view][s]: switch show/hide from events to explicit methods - fixes #211. 2012-08-15 10:57:58 +01:00
Rufus Pollock
a58f5e5bb0 [#174,refactor][s]: rename currentRecords to records on Dataset. 2012-07-05 15:37:17 +01:00
Rufus Pollock
a8b8c1a59a [view/map][xs]: additional name for geo column ('geo', 'lonlat'). 2012-07-01 14:26:53 +01:00
Rufus Pollock
92b061ef00 [map,bugfix][xs]: tick / untick autozoom control correctly. 2012-06-16 18:00:53 +01:00
Rufus Pollock
75cd2fb94d [#141,view/map][s]: support for all of elasticsearch geo_point / location objects - fixes #141.
* [lon, lat]
* "lat,lon"
* Bonus (non-ES): "(lat,lon)"

Also (accidentally included):

* upgrade to qunit 1.5.0 (much better stack traces!)
2012-06-11 22:00:32 +01:00
Rufus Pollock
68b6a9356f [view/map,bugfix][xs]: autozoom working again after breakage in ef74f13163cfee02dd28b8f5ecf6f08e59619ce3.
* had change autozoom to be part of state and had not done find/replace fully due to a self.autoZoom case as well as this.autoZoom case.
2012-06-06 23:19:55 +01:00
Rufus Pollock
11f2236ea8 [view/map][xs]: use geojson field name if it exists. 2012-06-06 15:19:47 +01:00
Rufus Pollock
ef74f13163 [#145,view/refactor][m]: switch to a proper sidebar setup where views can have both a main element and a sidebar element and this added to central sidebar.
* this fixes functional and visual bugs with current (new) setup where fields where in separate in RHS sidebar
* Refactored map and graph view to put menu/controls in the sidebar (this is quite nice!)
2012-06-06 15:19:00 +01:00
Rufus Pollock
e73be69499 [refactor][s]: standardize naming of files to use '.' rather than '-' as separator. 2012-06-06 10:40:22 +01:00