Skip to content
This repository was archived by the owner on Jul 28, 2023. It is now read-only.

Commit 6ac7ce0

Browse files
author
Gaël UTARD
committed
Merge tag '2.22.1' into geotrek_UX_dev_mid_2018
2 parents dae7fe9 + 422bdb8 commit 6ac7ce0

File tree

13 files changed

+346
-144
lines changed

13 files changed

+346
-144
lines changed

CHANGES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2.22.1-ux / 2020-02-07
2+
======================
3+
4+
**Bug fixes**
5+
6+
* Fix some bugs after upgrade to Leaflet 1.x
7+
18
2.22.0-ux / 2020-02-06
29
======================
310

npm-shrinkwrap.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "geotrekrando",
3-
"version": "2.22.0-ux",
3+
"version": "2.22.1-ux",
44
"description": "Geotrek rando public portal of Geotrek",
55
"author": "Makina Corpus",
66
"main": "src/app/app.js",
@@ -60,7 +60,7 @@
6060
"leaflet-geometryutil": "^0.9.2",
6161
"leaflet-minimap": "^3.6.1",
6262
"leaflet-pip": "^1.1.0",
63-
"leaflet-textpath": "^1.2.0",
63+
"leaflet-textpath": "^1.2.3",
6464
"leaflet.markercluster": "^1.4.1",
6565
"lodash": "^4.17.4",
6666
"merge-stream": "^1.0.1",

src/app/map/services.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ function mapService($rootScope, $q, $state, $resource, $translate, $filter, util
251251
});
252252
};
253253

254-
this.createLayerFromElement = function createLayerFromElement (element, type, elementLocation, forceRefresh, clickable) {
255-
clickable = clickable !== undefined ? clickable : true;
254+
this.createLayerFromElement = function createLayerFromElement (element, type, elementLocation, forceRefresh, interactive) {
255+
interactive = interactive !== undefined ? interactive : true;
256256
var deferred = $q.defer();
257257
var popupSources = {};
258258
if (type === "geojson" && element.geometry.type !== 'MultiPoint') {
@@ -264,7 +264,7 @@ function mapService($rootScope, $q, $state, $resource, $translate, $filter, util
264264
}
265265
var geoStyle = {
266266
className: className,
267-
clickable: clickable
267+
interactive: interactive
268268
};
269269

270270
if (element.geometry.type === 'Polygon') {
299 Bytes
Loading
420 Bytes
Loading
-228 Bytes
Binary file not shown.
-153 Bytes
Binary file not shown.

src/app/vendors/styles/_leaflet-main.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
@import 'leaflet/_leaflet';
2-
@import 'leaflet/_leaflet.label';
32
@import 'leaflet/_fullscreen';
43
@import 'leaflet/_switch';
54
@import 'leaflet/_minimap';
Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,40 @@
1-
.leaflet-control-fullscreen-button { background-image: url(#{$vendors-images-path}leaflet-fullscreen/icon-fullscreen.png); }
2-
.leaflet-retina .leaflet-control-fullscreen-button { background-image: url(#{$vendors-images-path}leaflet-fullscreen/icon-fullscreen-2x.png); background-size: 26px 26px; }
1+
.leaflet-control-fullscreen a {
2+
background:#fff url(#{$vendors-images-path}leaflet-fullscreen/fullscreen.png) no-repeat 0 0;
3+
background-size:26px 52px;
4+
}
5+
.leaflet-touch .leaflet-control-fullscreen a {
6+
background-position: 2px 2px;
7+
}
8+
.leaflet-fullscreen-on .leaflet-control-fullscreen a {
9+
background-position:0 -26px;
10+
}
11+
.leaflet-touch.leaflet-fullscreen-on .leaflet-control-fullscreen a {
12+
background-position: 2px -24px;
13+
}
14+
15+
/* Do not combine these two rules; IE will break. */
16+
.leaflet-container:-webkit-full-screen {
17+
width:100%!important;
18+
height:100%!important;
19+
}
20+
.leaflet-container.leaflet-fullscreen-on {
21+
width:100%!important;
22+
height:100%!important;
23+
}
24+
25+
.leaflet-pseudo-fullscreen {
26+
position:fixed!important;
27+
width:100%!important;
28+
height:100%!important;
29+
top:0!important;
30+
left:0!important;
31+
z-index:99999;
32+
}
33+
34+
@media
35+
(-webkit-min-device-pixel-ratio:2),
36+
(min-resolution:192dpi) {
37+
.leaflet-control-fullscreen a {
38+
background-image:url(#{$vendors-images-path}leaflet-fullscreen/fullscreen@2x.png);
39+
}
40+
}

0 commit comments

Comments
 (0)