decidim 0.26.9 → 0.26.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/decidim/version.rb +1 -1
- data/package-lock.json +7 -7
- data/packages/browserslist-config/package.json +1 -1
- data/packages/core/node_modules/leaflet/CHANGELOG.md +2191 -0
- data/packages/core/node_modules/leaflet/LICENSE +26 -0
- data/packages/core/node_modules/leaflet/README.md +55 -0
- data/packages/core/node_modules/leaflet/dist/images/layers-2x.png +0 -0
- data/packages/core/node_modules/leaflet/dist/images/layers.png +0 -0
- data/packages/core/node_modules/leaflet/dist/images/marker-icon-2x.png +0 -0
- data/packages/core/node_modules/leaflet/dist/images/marker-icon.png +0 -0
- data/packages/core/node_modules/leaflet/dist/images/marker-shadow.png +0 -0
- data/packages/core/node_modules/leaflet/dist/leaflet-src.esm.js +14419 -0
- data/packages/core/node_modules/leaflet/dist/leaflet-src.esm.js.map +1 -0
- data/packages/core/node_modules/leaflet/dist/leaflet-src.js +14512 -0
- data/packages/core/node_modules/leaflet/dist/leaflet-src.js.map +1 -0
- data/packages/core/node_modules/leaflet/dist/leaflet.css +661 -0
- data/packages/core/node_modules/leaflet/dist/leaflet.js +6 -0
- data/packages/core/node_modules/leaflet/dist/leaflet.js.map +1 -0
- data/packages/core/node_modules/leaflet/package.json +149 -0
- data/packages/core/node_modules/leaflet/src/Leaflet.js +24 -0
- data/packages/core/node_modules/leaflet/src/control/Control.Attribution.js +148 -0
- data/packages/core/node_modules/leaflet/src/control/Control.Layers.js +443 -0
- data/packages/core/node_modules/leaflet/src/control/Control.Scale.js +132 -0
- data/packages/core/node_modules/leaflet/src/control/Control.Zoom.js +146 -0
- data/packages/core/node_modules/leaflet/src/control/Control.js +174 -0
- data/packages/core/node_modules/leaflet/src/control/index.js +17 -0
- data/packages/core/node_modules/leaflet/src/core/Browser.js +220 -0
- data/packages/core/node_modules/leaflet/src/core/Class.js +135 -0
- data/packages/core/node_modules/leaflet/src/core/Class.leafdoc +197 -0
- data/packages/core/node_modules/leaflet/src/core/Events.js +344 -0
- data/packages/core/node_modules/leaflet/src/core/Events.leafdoc +143 -0
- data/packages/core/node_modules/leaflet/src/core/Handler.js +57 -0
- data/packages/core/node_modules/leaflet/src/core/Util.js +241 -0
- data/packages/core/node_modules/leaflet/src/core/index.js +15 -0
- data/packages/core/node_modules/leaflet/src/dom/DomEvent.DoubleTap.js +91 -0
- data/packages/core/node_modules/leaflet/src/dom/DomEvent.Pointer.js +97 -0
- data/packages/core/node_modules/leaflet/src/dom/DomEvent.js +315 -0
- data/packages/core/node_modules/leaflet/src/dom/DomUtil.js +349 -0
- data/packages/core/node_modules/leaflet/src/dom/Draggable.js +220 -0
- data/packages/core/node_modules/leaflet/src/dom/PosAnimation.js +113 -0
- data/packages/core/node_modules/leaflet/src/dom/index.js +9 -0
- data/packages/core/node_modules/leaflet/src/geo/LatLng.js +137 -0
- data/packages/core/node_modules/leaflet/src/geo/LatLngBounds.js +251 -0
- data/packages/core/node_modules/leaflet/src/geo/crs/CRS.EPSG3395.js +20 -0
- data/packages/core/node_modules/leaflet/src/geo/crs/CRS.EPSG3857.js +27 -0
- data/packages/core/node_modules/leaflet/src/geo/crs/CRS.EPSG4326.js +23 -0
- data/packages/core/node_modules/leaflet/src/geo/crs/CRS.Earth.js +33 -0
- data/packages/core/node_modules/leaflet/src/geo/crs/CRS.Simple.js +36 -0
- data/packages/core/node_modules/leaflet/src/geo/crs/CRS.js +139 -0
- data/packages/core/node_modules/leaflet/src/geo/crs/index.js +15 -0
- data/packages/core/node_modules/leaflet/src/geo/index.js +7 -0
- data/packages/core/node_modules/leaflet/src/geo/projection/Projection.LonLat.js +28 -0
- data/packages/core/node_modules/leaflet/src/geo/projection/Projection.Mercator.js +49 -0
- data/packages/core/node_modules/leaflet/src/geo/projection/Projection.SphericalMercator.js +44 -0
- data/packages/core/node_modules/leaflet/src/geo/projection/index.js +26 -0
- data/packages/core/node_modules/leaflet/src/geometry/Bounds.js +219 -0
- data/packages/core/node_modules/leaflet/src/geometry/LineUtil.js +306 -0
- data/packages/core/node_modules/leaflet/src/geometry/Point.js +222 -0
- data/packages/core/node_modules/leaflet/src/geometry/PolyUtil.js +129 -0
- data/packages/core/node_modules/leaflet/src/geometry/Transformation.js +79 -0
- data/packages/core/node_modules/leaflet/src/geometry/index.js +8 -0
- data/packages/core/node_modules/leaflet/src/images/layers.svg +1 -0
- data/packages/core/node_modules/leaflet/src/images/logo.svg +1 -0
- data/packages/core/node_modules/leaflet/src/images/marker.svg +1 -0
- data/packages/core/node_modules/leaflet/src/layer/DivOverlay.js +348 -0
- data/packages/core/node_modules/leaflet/src/layer/FeatureGroup.js +94 -0
- data/packages/core/node_modules/leaflet/src/layer/GeoJSON.js +452 -0
- data/packages/core/node_modules/leaflet/src/layer/ImageOverlay.js +270 -0
- data/packages/core/node_modules/leaflet/src/layer/Layer.Interactive.leafdoc +39 -0
- data/packages/core/node_modules/leaflet/src/layer/Layer.js +275 -0
- data/packages/core/node_modules/leaflet/src/layer/LayerGroup.js +159 -0
- data/packages/core/node_modules/leaflet/src/layer/Popup.js +506 -0
- data/packages/core/node_modules/leaflet/src/layer/SVGOverlay.js +50 -0
- data/packages/core/node_modules/leaflet/src/layer/Tooltip.js +444 -0
- data/packages/core/node_modules/leaflet/src/layer/VideoOverlay.js +106 -0
- data/packages/core/node_modules/leaflet/src/layer/index.js +24 -0
- data/packages/core/node_modules/leaflet/src/layer/marker/DivIcon.js +74 -0
- data/packages/core/node_modules/leaflet/src/layer/marker/Icon.Default.js +66 -0
- data/packages/core/node_modules/leaflet/src/layer/marker/Icon.js +165 -0
- data/packages/core/node_modules/leaflet/src/layer/marker/Marker.Drag.js +161 -0
- data/packages/core/node_modules/leaflet/src/layer/marker/Marker.js +419 -0
- data/packages/core/node_modules/leaflet/src/layer/marker/index.js +8 -0
- data/packages/core/node_modules/leaflet/src/layer/tile/GridLayer.js +923 -0
- data/packages/core/node_modules/leaflet/src/layer/tile/TileLayer.WMS.js +137 -0
- data/packages/core/node_modules/leaflet/src/layer/tile/TileLayer.js +289 -0
- data/packages/core/node_modules/leaflet/src/layer/tile/index.js +6 -0
- data/packages/core/node_modules/leaflet/src/layer/vector/Canvas.js +492 -0
- data/packages/core/node_modules/leaflet/src/layer/vector/Circle.js +113 -0
- data/packages/core/node_modules/leaflet/src/layer/vector/CircleMarker.js +109 -0
- data/packages/core/node_modules/leaflet/src/layer/vector/Path.js +148 -0
- data/packages/core/node_modules/leaflet/src/layer/vector/Polygon.js +159 -0
- data/packages/core/node_modules/leaflet/src/layer/vector/Polyline.js +307 -0
- data/packages/core/node_modules/leaflet/src/layer/vector/Rectangle.js +57 -0
- data/packages/core/node_modules/leaflet/src/layer/vector/Renderer.getRenderer.js +45 -0
- data/packages/core/node_modules/leaflet/src/layer/vector/Renderer.js +133 -0
- data/packages/core/node_modules/leaflet/src/layer/vector/SVG.Util.js +39 -0
- data/packages/core/node_modules/leaflet/src/layer/vector/SVG.VML.js +144 -0
- data/packages/core/node_modules/leaflet/src/layer/vector/SVG.js +207 -0
- data/packages/core/node_modules/leaflet/src/layer/vector/index.js +14 -0
- data/packages/core/node_modules/leaflet/src/map/Map.js +1751 -0
- data/packages/core/node_modules/leaflet/src/map/Map.methodOptions.leafdoc +112 -0
- data/packages/core/node_modules/leaflet/src/map/handler/Map.BoxZoom.js +152 -0
- data/packages/core/node_modules/leaflet/src/map/handler/Map.DoubleClickZoom.js +55 -0
- data/packages/core/node_modules/leaflet/src/map/handler/Map.Drag.js +235 -0
- data/packages/core/node_modules/leaflet/src/map/handler/Map.Keyboard.js +183 -0
- data/packages/core/node_modules/leaflet/src/map/handler/Map.ScrollWheelZoom.js +91 -0
- data/packages/core/node_modules/leaflet/src/map/handler/Map.TapHold.js +102 -0
- data/packages/core/node_modules/leaflet/src/map/handler/Map.TouchZoom.js +130 -0
- data/packages/core/node_modules/leaflet/src/map/index.js +17 -0
- data/packages/core/package.json +1 -1
- data/packages/dev/package.json +1 -1
- data/packages/elections/package.json +1 -1
- data/packages/eslint-config/package.json +1 -1
- data/packages/stylelint-config/package.json +1 -1
- data/packages/webpacker/package.json +1 -1
- metadata +148 -42
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "leaflet",
|
|
3
|
+
"version": "1.9.4",
|
|
4
|
+
"homepage": "https://leafletjs.com/",
|
|
5
|
+
"description": "JavaScript library for mobile-friendly interactive maps",
|
|
6
|
+
"devDependencies": {
|
|
7
|
+
"@mapbox/eslint-plugin-script-tags": "^1.0.0",
|
|
8
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
9
|
+
"bundlemon": "^1.4.0",
|
|
10
|
+
"eslint": "^8.23.0",
|
|
11
|
+
"eslint-config-mourner": "^2.0.3",
|
|
12
|
+
"git-rev-sync": "^3.0.2",
|
|
13
|
+
"happen": "~0.3.2",
|
|
14
|
+
"husky": "^8.0.1",
|
|
15
|
+
"karma": "^6.4.0",
|
|
16
|
+
"karma-chrome-launcher": "^3.1.1",
|
|
17
|
+
"karma-edge-launcher": "^0.4.2",
|
|
18
|
+
"karma-expect": "^1.1.3",
|
|
19
|
+
"karma-firefox-launcher": "^2.1.2",
|
|
20
|
+
"karma-ie-launcher": "^1.0.0",
|
|
21
|
+
"karma-mocha": "^2.0.1",
|
|
22
|
+
"karma-rollup-preprocessor": "^7.0.8",
|
|
23
|
+
"karma-safari-launcher": "~1.0.0",
|
|
24
|
+
"karma-sinon": "^1.0.5",
|
|
25
|
+
"leafdoc": "^2.3.0",
|
|
26
|
+
"lint-staged": "^13.0.3",
|
|
27
|
+
"mocha": "^9.2.2",
|
|
28
|
+
"prosthetic-hand": "^1.4.0",
|
|
29
|
+
"rollup": "^2.78.1",
|
|
30
|
+
"rollup-plugin-git-version": "^0.3.1",
|
|
31
|
+
"sinon": "^7.5.0",
|
|
32
|
+
"ssri": "^9.0.1",
|
|
33
|
+
"uglify-js": "^3.17.0"
|
|
34
|
+
},
|
|
35
|
+
"main": "dist/leaflet-src.js",
|
|
36
|
+
"style": "dist/leaflet.css",
|
|
37
|
+
"files": [
|
|
38
|
+
"dist",
|
|
39
|
+
"src",
|
|
40
|
+
"!dist/leaflet.zip",
|
|
41
|
+
"!*.leafdoc",
|
|
42
|
+
"CHANGELOG.md"
|
|
43
|
+
],
|
|
44
|
+
"scripts": {
|
|
45
|
+
"docs": "node ./build/docs.js && node ./build/integrity.js",
|
|
46
|
+
"test": "karma start ./spec/karma.conf.js",
|
|
47
|
+
"build": "npm run rollup && npm run uglify",
|
|
48
|
+
"lint": "eslint .",
|
|
49
|
+
"lintfix": "npm run lint -- --fix",
|
|
50
|
+
"rollup": "rollup -c build/rollup-config.js",
|
|
51
|
+
"watch": "rollup -w -c build/rollup-config.js",
|
|
52
|
+
"uglify": "uglifyjs dist/leaflet-src.js -c -m -o dist/leaflet.js --source-map filename=dist/leaflet.js.map --source-map content=dist/leaflet-src.js.map --source-map url=leaflet.js.map --comments",
|
|
53
|
+
"bundlemon": "bundlemon --subProject js --defaultCompression none && bundlemon --subProject js-gzip --defaultCompression gzip",
|
|
54
|
+
"serve": "cd docs && bundle exec jekyll serve",
|
|
55
|
+
"prepare": "husky install"
|
|
56
|
+
},
|
|
57
|
+
"eslintConfig": {
|
|
58
|
+
"ignorePatterns": [
|
|
59
|
+
"dist",
|
|
60
|
+
"debug",
|
|
61
|
+
"docs/docs/highlight",
|
|
62
|
+
"docs/examples/choropleth/us-states.js",
|
|
63
|
+
"docs/examples/geojson/sample-geojson.js",
|
|
64
|
+
"docs/examples/map-panes/eu-countries.js",
|
|
65
|
+
"docs/examples/extending/extending-2-layers.md",
|
|
66
|
+
"docs/_posts/2012*",
|
|
67
|
+
"docs/_site",
|
|
68
|
+
"build/integrity.js"
|
|
69
|
+
],
|
|
70
|
+
"root": true,
|
|
71
|
+
"env": {
|
|
72
|
+
"commonjs": true,
|
|
73
|
+
"amd": true,
|
|
74
|
+
"node": false
|
|
75
|
+
},
|
|
76
|
+
"extends": "mourner",
|
|
77
|
+
"plugins": [
|
|
78
|
+
"@mapbox/eslint-plugin-script-tags"
|
|
79
|
+
],
|
|
80
|
+
"parserOptions": {
|
|
81
|
+
"ecmaVersion": 6,
|
|
82
|
+
"sourceType": "module"
|
|
83
|
+
},
|
|
84
|
+
"rules": {
|
|
85
|
+
"linebreak-style": [
|
|
86
|
+
0,
|
|
87
|
+
"unix"
|
|
88
|
+
],
|
|
89
|
+
"no-mixed-spaces-and-tabs": [
|
|
90
|
+
2,
|
|
91
|
+
"smart-tabs"
|
|
92
|
+
],
|
|
93
|
+
"indent": [
|
|
94
|
+
2,
|
|
95
|
+
"tab",
|
|
96
|
+
{
|
|
97
|
+
"VariableDeclarator": 0,
|
|
98
|
+
"flatTernaryExpressions": true
|
|
99
|
+
}
|
|
100
|
+
],
|
|
101
|
+
"curly": 2,
|
|
102
|
+
"spaced-comment": 2,
|
|
103
|
+
"strict": 0,
|
|
104
|
+
"wrap-iife": 0,
|
|
105
|
+
"key-spacing": 0,
|
|
106
|
+
"consistent-return": 0,
|
|
107
|
+
"no-unused-expressions": [
|
|
108
|
+
"error",
|
|
109
|
+
{
|
|
110
|
+
"allowShortCircuit": true
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
"overrides": [
|
|
115
|
+
{
|
|
116
|
+
"files": [
|
|
117
|
+
"build/**/*"
|
|
118
|
+
],
|
|
119
|
+
"env": {
|
|
120
|
+
"node": true
|
|
121
|
+
},
|
|
122
|
+
"rules": {
|
|
123
|
+
"global-require": 0
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"files": [
|
|
128
|
+
"*.md"
|
|
129
|
+
],
|
|
130
|
+
"rules": {
|
|
131
|
+
"eol-last": 0,
|
|
132
|
+
"no-unused-vars": 0
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
"repository": {
|
|
138
|
+
"type": "git",
|
|
139
|
+
"url": "git://github.com/Leaflet/Leaflet.git"
|
|
140
|
+
},
|
|
141
|
+
"keywords": [
|
|
142
|
+
"gis",
|
|
143
|
+
"map"
|
|
144
|
+
],
|
|
145
|
+
"license": "BSD-2-Clause",
|
|
146
|
+
"lint-staged": {
|
|
147
|
+
"*.(js|md)": "eslint --cache --fix"
|
|
148
|
+
}
|
|
149
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
|
|
2
|
+
import {version} from '../package.json';
|
|
3
|
+
export {version};
|
|
4
|
+
|
|
5
|
+
// control
|
|
6
|
+
export * from './control/index';
|
|
7
|
+
|
|
8
|
+
// core
|
|
9
|
+
export * from './core/index';
|
|
10
|
+
|
|
11
|
+
// dom
|
|
12
|
+
export * from './dom/index';
|
|
13
|
+
|
|
14
|
+
// geometry
|
|
15
|
+
export * from './geometry/index';
|
|
16
|
+
|
|
17
|
+
// geo
|
|
18
|
+
export * from './geo/index';
|
|
19
|
+
|
|
20
|
+
// layer
|
|
21
|
+
export * from './layer/index';
|
|
22
|
+
|
|
23
|
+
// map
|
|
24
|
+
export * from './map/index';
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
|
|
2
|
+
import {Control} from './Control';
|
|
3
|
+
import {Map} from '../map/Map';
|
|
4
|
+
import * as Util from '../core/Util';
|
|
5
|
+
import * as DomEvent from '../dom/DomEvent';
|
|
6
|
+
import * as DomUtil from '../dom/DomUtil';
|
|
7
|
+
import Browser from '../core/Browser';
|
|
8
|
+
|
|
9
|
+
var ukrainianFlag = '<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>';
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
* @class Control.Attribution
|
|
14
|
+
* @aka L.Control.Attribution
|
|
15
|
+
* @inherits Control
|
|
16
|
+
*
|
|
17
|
+
* The attribution control allows you to display attribution data in a small text box on a map. It is put on the map by default unless you set its [`attributionControl` option](#map-attributioncontrol) to `false`, and it fetches attribution texts from layers with the [`getAttribution` method](#layer-getattribution) automatically. Extends Control.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
export var Attribution = Control.extend({
|
|
21
|
+
// @section
|
|
22
|
+
// @aka Control.Attribution options
|
|
23
|
+
options: {
|
|
24
|
+
position: 'bottomright',
|
|
25
|
+
|
|
26
|
+
// @option prefix: String|false = 'Leaflet'
|
|
27
|
+
// The HTML text shown before the attributions. Pass `false` to disable.
|
|
28
|
+
prefix: '<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">' + (Browser.inlineSvg ? ukrainianFlag + ' ' : '') + 'Leaflet</a>'
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
initialize: function (options) {
|
|
32
|
+
Util.setOptions(this, options);
|
|
33
|
+
|
|
34
|
+
this._attributions = {};
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
onAdd: function (map) {
|
|
38
|
+
map.attributionControl = this;
|
|
39
|
+
this._container = DomUtil.create('div', 'leaflet-control-attribution');
|
|
40
|
+
DomEvent.disableClickPropagation(this._container);
|
|
41
|
+
|
|
42
|
+
// TODO ugly, refactor
|
|
43
|
+
for (var i in map._layers) {
|
|
44
|
+
if (map._layers[i].getAttribution) {
|
|
45
|
+
this.addAttribution(map._layers[i].getAttribution());
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
this._update();
|
|
50
|
+
|
|
51
|
+
map.on('layeradd', this._addAttribution, this);
|
|
52
|
+
|
|
53
|
+
return this._container;
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
onRemove: function (map) {
|
|
57
|
+
map.off('layeradd', this._addAttribution, this);
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
_addAttribution: function (ev) {
|
|
61
|
+
if (ev.layer.getAttribution) {
|
|
62
|
+
this.addAttribution(ev.layer.getAttribution());
|
|
63
|
+
ev.layer.once('remove', function () {
|
|
64
|
+
this.removeAttribution(ev.layer.getAttribution());
|
|
65
|
+
}, this);
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
// @method setPrefix(prefix: String|false): this
|
|
70
|
+
// The HTML text shown before the attributions. Pass `false` to disable.
|
|
71
|
+
setPrefix: function (prefix) {
|
|
72
|
+
this.options.prefix = prefix;
|
|
73
|
+
this._update();
|
|
74
|
+
return this;
|
|
75
|
+
},
|
|
76
|
+
|
|
77
|
+
// @method addAttribution(text: String): this
|
|
78
|
+
// Adds an attribution text (e.g. `'© OpenStreetMap contributors'`).
|
|
79
|
+
addAttribution: function (text) {
|
|
80
|
+
if (!text) { return this; }
|
|
81
|
+
|
|
82
|
+
if (!this._attributions[text]) {
|
|
83
|
+
this._attributions[text] = 0;
|
|
84
|
+
}
|
|
85
|
+
this._attributions[text]++;
|
|
86
|
+
|
|
87
|
+
this._update();
|
|
88
|
+
|
|
89
|
+
return this;
|
|
90
|
+
},
|
|
91
|
+
|
|
92
|
+
// @method removeAttribution(text: String): this
|
|
93
|
+
// Removes an attribution text.
|
|
94
|
+
removeAttribution: function (text) {
|
|
95
|
+
if (!text) { return this; }
|
|
96
|
+
|
|
97
|
+
if (this._attributions[text]) {
|
|
98
|
+
this._attributions[text]--;
|
|
99
|
+
this._update();
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return this;
|
|
103
|
+
},
|
|
104
|
+
|
|
105
|
+
_update: function () {
|
|
106
|
+
if (!this._map) { return; }
|
|
107
|
+
|
|
108
|
+
var attribs = [];
|
|
109
|
+
|
|
110
|
+
for (var i in this._attributions) {
|
|
111
|
+
if (this._attributions[i]) {
|
|
112
|
+
attribs.push(i);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
var prefixAndAttribs = [];
|
|
117
|
+
|
|
118
|
+
if (this.options.prefix) {
|
|
119
|
+
prefixAndAttribs.push(this.options.prefix);
|
|
120
|
+
}
|
|
121
|
+
if (attribs.length) {
|
|
122
|
+
prefixAndAttribs.push(attribs.join(', '));
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
this._container.innerHTML = prefixAndAttribs.join(' <span aria-hidden="true">|</span> ');
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
// @namespace Map
|
|
130
|
+
// @section Control options
|
|
131
|
+
// @option attributionControl: Boolean = true
|
|
132
|
+
// Whether a [attribution control](#control-attribution) is added to the map by default.
|
|
133
|
+
Map.mergeOptions({
|
|
134
|
+
attributionControl: true
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
Map.addInitHook(function () {
|
|
138
|
+
if (this.options.attributionControl) {
|
|
139
|
+
new Attribution().addTo(this);
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
// @namespace Control.Attribution
|
|
144
|
+
// @factory L.control.attribution(options: Control.Attribution options)
|
|
145
|
+
// Creates an attribution control.
|
|
146
|
+
export var attribution = function (options) {
|
|
147
|
+
return new Attribution(options);
|
|
148
|
+
};
|