amercader
9e284dc8b7
Fix test for older ES versions
2016-08-12 11:30:17 +01:00
amercader
50b33f3ccf
Change default tiles for map view, allow customization
...
After the MapQuest debacle, there was a patch merged that replaced the
MapQuest tiles with the OpenStreetMap ones (#501 ). IMO these are not a
good default choice because while they might be fine for a small Recline
project, heavy usage of them goes against their Terms of Use:
http://wiki.openstreetmap.org/wiki/Tile_usage_policy
More specifically:
> Heavy use (e.g. distributing an app that uses tiles from openstreetmap.org)
> is forbidden without prior permission from the System Administrators
Popular CKAN instances that use Recline are likely to fall in this
category.
And also:
> Highly Recommended: Do not hardcode any URL at tile.openstreetmap.org
> into an app.
This patch replaces the tiles with the Terrain tileset from Stamen
(http://maps.stamen.com ), which have more liberal terms.
But more crucially, as this is something that different people will have
different views on, it allows you to configure the tiles used by passing
custom options to the view constructor, eg:
view = new recline.View.Map({
model: dataset,
mapTilesURL: '//{s}.tiles.mapbox.com/v4/mapbox.mapbox-streets-v7/{z}/{x}/{y}.png?access_token=pk.XXXX',
mapTilesAttribution: '© MapBox etc..',
mapTilesSubdomains: 'ab'
})
So everybody (and apps integrating Recline like CKAN) can configure the tiles
as they want.
2016-08-03 10:52:01 +01:00
Rufus Pollock
ae8f51bf05
[#429,map,bugfix][s]: parse negative lat/lon strings correctly - fixes #429 .
2014-06-01 19:58:45 +01:00
Suz
27627c45d9
Corrected syntax of new mapping test cases
2013-12-20 17:01:18 -08:00
Suz
a35edd8815
added test data for Edmonton and Rio de Janerio in DMS format
2013-12-18 17:59:39 -08:00
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
1c86c70c32
Use htmlEqual() so that we're more robust against cross-browser serialisation issues. Issue #323 .
2013-05-14 18:37:11 +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
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
Dominik Moritz
2d26afb435
Merge branch 'master' into markercluster
...
Conflicts:
src/view.map.js
2012-09-25 11:49:16 +01:00
Michael Bauer
4954e442a3
added regex support for query
...
Added a the regex support for queries - this will also match substrings!
(change from previous behavior).
Also fixed the test vor Custom popups, since this was b0rken.
2012-09-13 16:32:36 +02:00
Dominik Moritz
3ecd0b875b
write a test for automatic clustering and fix render issue
2012-09-12 14:10:50 +01: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
0577ab145d
disable clustering in tests
2012-09-12 00:09:25 +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
Rufus Pollock
763de67596
[test][xs]: remove dataset.query calls in map tests as no longer needed (since 02d152c5ad2a68e8b80ed63c636e2d6e4c3d084a I think).
2012-09-08 18:48:54 +01:00
Dominik Moritz
fb81d51bc6
Updated leaflet to 0.4.4
2012-08-27 00:56:56 +01:00
Rufus Pollock
ce84dfc26b
[#212,test/map][s]: addendum to previous commit (should have been in there!).
2012-08-15 11:56:39 +01:00
Rufus Pollock
a58f5e5bb0
[#174,refactor][s]: rename currentRecords to records on Dataset.
2012-07-05 15:37:17 +01:00
Rufus Pollock
3f37da089a
[#162,refactor][s]: remove recline.Memory.createDataset now that it is obsoleted by recent improvements.
2012-06-23 20:38:47 +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
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