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
..
2013-05-15 12:40:38 +01:00
2013-05-14 17:20:16 +01:00
2011-11-06 01:13:28 +00:00
2012-07-05 15:37:17 +01:00
2014-02-04 13:48:53 -08:00
2015-04-01 14:39:24 -03:00
2015-03-05 01:00:00 -03:00
2015-05-11 21:30:08 +02:00
2014-08-18 10:00:13 +01:00
2012-06-01 14:40:55 +01:00
2015-04-01 14:39:24 -03:00
2012-07-08 16:41:34 +01:00
2016-08-03 10:52:01 +01:00
2015-03-05 11:41:27 -03:00
2015-05-12 17:23:27 +02:00
2014-10-15 20:02:54 +02:00
2013-10-29 12:17:58 -07:00
2014-02-06 13:48:30 -08:00
2013-05-13 18:52:37 +01:00