Unverified Commit 20fa6298 authored by Sebastian Castro's avatar Sebastian Castro
Browse files

Add attribution to default tileLayers

parent 885b0fdf
......@@ -19,9 +19,13 @@ class MigrationCommand extends GoGoAbstractCommand
// DO NOT REMOVE A SINGLE ELEMENT OF THOSE ARRAYS, ONLY ADD NEW ONES
// -----------------------------------------------------------------
public $migrations = [
// March 2019
// "db.Category.renameCollection('CategoryGroup')",
// "db.Option.renameCollection('Category')"
// v2.4.6
'db.TileLayer.updateMany({"name":"cartodb"}, {$set: {"attribution":"&copy; <a href=\"http://www.openstreetmap.org/copyright\">OpenStreetMap</a> &copy; <a href=\"http://cartodb.com/attributions\">CartoDB</a>"}})',
'db.TileLayer.updateMany({"name":"hydda"}, {$set: {"attribution":"Tiles courtesy of <a href=\"http://openstreetmap.se/\" target=\"_blank\">OpenStreetMap Sweden</a> &mdash; Map data &copy; <a href=\"http://www.openstreetmap.org/copyright\">OpenStreetMap</a>"}})',
'db.TileLayer.updateMany({"name":"wikimedia"}, {$set: {"attribution":"<a href=\"https://wikimediafoundation.org/wiki/Maps_Terms_of_Use\">Wikimedia</a> | Map data © <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap contributors</a>"}})',
'db.TileLayer.updateMany({"name":"lyrk"}, {$set: {"attribution":"&copy Lyrk | Map data &copy; <a href=\"http://www.openstreetmap.org/copyright\">OpenStreetMap</a>"}})',
'db.TileLayer.updateMany({"name":"osmfr"}, {$set: {"attribution":"&copy; Openstreetmap France | &copy; <a href=\"http://www.openstreetmap.org/copyright\">OpenStreetMap</a>"}})',
'db.TileLayer.updateMany({"name":"stamenWaterColor"}, {$set: {"attribution":"Map tiles by <a href=\"http://stamen.com\">Stamen Design</a>, <a href=\"http://creativecommons.org/licenses/by/3.0\">CC BY 3.0</a> &mdash; Map data &copy; <a href=\"http://www.openstreetmap.org/copyright\">OpenStreetMap</a>"}})',
];
public $commands = [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment