mapbox-gl-rails 2.2.0 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/mapbox-gl-compare.js +1 -1
- data/app/assets/javascripts/mapbox-gl-directions.js +762 -125
- data/app/assets/javascripts/mapbox-gl-draw.js +2 -1
- data/app/assets/javascripts/mapbox-gl-geocoder.js +2 -2
- data/app/assets/javascripts/mapbox-gl.js +58626 -55446
- data/app/assets/stylesheets/mapbox-gl-compare.scss +24 -1
- data/app/assets/stylesheets/mapbox-gl-geocoder.scss +1 -1
- data/app/assets/stylesheets/mapbox-gl.scss +57 -4
- data/lib/mapbox-gl/rails/version.rb +1 -1
- data/plugins.yaml +4 -4
- metadata +3 -3
@@ -5,7 +5,7 @@
|
|
5
5
|
height: 100%;
|
6
6
|
z-index: 1;
|
7
7
|
|
8
|
-
.compare-swiper {
|
8
|
+
.compare-swiper-vertical {
|
9
9
|
background-color: #3887be;
|
10
10
|
box-shadow: inset 0 0 0 2px #fff;
|
11
11
|
display: inline-block;
|
@@ -21,3 +21,26 @@
|
|
21
21
|
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIgICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdG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vdy1oZWlnaHQ9Ijc1MSIgICAgIGlkPSJuYW1lZHZpZXc1NDQwIiAgICAgc2hvd2dyaWQ9InRydWUiICAgICBpbmtzY2FwZTp6b29tPSI0IiAgICAgaW5rc2NhcGU6Y3g9IjI1Ljg4OTgzMSIgICAgIGlua3NjYXBlOmN5PSIzNC4zODE4MzMiICAgICBpbmtzY2FwZTp3aW5kb3cteD0iMCIgICAgIGlua3NjYXBlOndpbmRvdy15PSIyMyIgICAgIGlua3NjYXBlOndpbmRvdy1tYXhpbWl6ZWQ9IjAiICAgICBpbmtzY2FwZTpjdXJyZW50LWxheWVyPSJzdmc1NDM0IiAgICAgaW5rc2NhcGU6b2JqZWN0LW5vZGVzPSJ0cnVlIiAgICAgaW5rc2NhcGU6c25hcC1zbW9vdGgtbm9kZXM9InRydWUiPiAgICA8aW5rc2NhcGU6Z3JpZCAgICAgICB0eXBlPSJ4eWdyaWQiICAgICAgIGlkPSJncmlkNTk4OSIgLz4gIDwvc29kaXBvZGk6bmFtZWR2aWV3PiAgPHBhdGggICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjFweDtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIiAgICAgZD0iTSAyNSAyNCBMIDE2IDMwIEwgMjUgMzYgTCAyNSAyNCB6IE0gMzUgMjQgTCAzNSAzNiBMIDQ0IDMwIEwgMzUgMjQgeiAiICAgICBpZD0icGF0aDU5OTUiIC8+PC9zdmc+);
|
22
22
|
}
|
23
23
|
}
|
24
|
+
|
25
|
+
.mapboxgl-compare-horizontal {
|
26
|
+
position: relative;
|
27
|
+
width: 100%;
|
28
|
+
height: 2px;
|
29
|
+
}
|
30
|
+
|
31
|
+
.mapboxgl-compare .compare-swiper-horizontal {
|
32
|
+
background-color: #3887be;
|
33
|
+
box-shadow: inset 0 0 0 2px #fff;
|
34
|
+
display: inline-block;
|
35
|
+
border-radius: 50%;
|
36
|
+
position: absolute;
|
37
|
+
width: 60px;
|
38
|
+
height: 60px;
|
39
|
+
top: 50%;
|
40
|
+
left: 50%;
|
41
|
+
margin: -30px 1px 0;
|
42
|
+
color: #fff;
|
43
|
+
cursor: ns-resize;
|
44
|
+
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIgICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgICB4bWxuczpzb2RpcG9kaT0iaHR0cDovL3NvZGlwb2RpLnNvdXJjZWZvcmdlLm5ldC9EVEQvc29kaXBvZGktMC5kdGQiICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiICAgd2lkdGg9IjYwIiAgIGhlaWdodD0iNjAiICAgdmVyc2lvbj0iMS4xIiAgIHZpZXdCb3g9IjAgMCA2MCA2MCIgICBpZD0ic3ZnNTQzNCIgICBpbmtzY2FwZTp2ZXJzaW9uPSIwLjkxK2RldmVsK29zeG1lbnUgcjEyOTExIiAgIHNvZGlwb2RpOmRvY25hbWU9Imwtci5zdmciPiAgPG1ldGFkYXRhICAgICBpZD0ibWV0YWRhdGE1NDQ0Ij4gICAgPHJkZjpSREY+ICAgICAgPGNjOldvcmsgICAgICAgICBy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lIiAgICAgaW5rc2NhcGU6c25hcC1zbW9vdGgtbm9kZXM9InRydWUiPiAgICA8aW5rc2NhcGU6Z3JpZCAgICAgICB0eXBlPSJ4eWdyaWQiICAgICAgIGlkPSJncmlkNTk4OSIgLz4gIDwvc29kaXBvZGk6bmFtZWR2aWV3PiAgPHBhdGggICAgIHN0eWxlPSJmaWxsOiNmZmZmZmY7ZmlsbC1ydWxlOmV2ZW5vZGQ7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjFweDtzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjptaXRlcjtzdHJva2Utb3BhY2l0eToxIiAgICAgZD0iTSAyNSAyNCBMIDE2IDMwIEwgMjUgMzYgTCAyNSAyNCB6IE0gMzUgMjQgTCAzNSAzNiBMIDQ0IDMwIEwgMzUgMjQgeiAiICAgICBpZD0icGF0aDU5OTUiIC8+PC9zdmc+);
|
45
|
+
transform: rotate(90deg);
|
46
|
+
}
|
@@ -136,6 +136,7 @@
|
|
136
136
|
box-sizing: border-box;
|
137
137
|
background-color: transparent;
|
138
138
|
cursor: pointer;
|
139
|
+
overflow: hidden;
|
139
140
|
|
140
141
|
+ button {
|
141
142
|
border-top: 1px solid #ddd;
|
@@ -674,10 +675,6 @@ a.mapboxgl-ctrl-logo {
|
|
674
675
|
transition: opacity .2s;
|
675
676
|
}
|
676
677
|
|
677
|
-
.mapboxgl-marker-occluded {
|
678
|
-
opacity: .2;
|
679
|
-
}
|
680
|
-
|
681
678
|
.mapboxgl-user-location-dot {
|
682
679
|
background-color: #1da1f2;
|
683
680
|
width: 15px;
|
@@ -708,6 +705,30 @@ a.mapboxgl-ctrl-logo {
|
|
708
705
|
}
|
709
706
|
}
|
710
707
|
|
708
|
+
.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading {
|
709
|
+
width: 0;
|
710
|
+
height: 0;
|
711
|
+
|
712
|
+
&:after {
|
713
|
+
content: "";
|
714
|
+
border-bottom: 7.5px solid #4aa1eb;
|
715
|
+
position: absolute;
|
716
|
+
}
|
717
|
+
|
718
|
+
&:before {
|
719
|
+
content: "";
|
720
|
+
border-bottom: 7.5px solid #4aa1eb;
|
721
|
+
position: absolute;
|
722
|
+
border-left: 7.5px solid transparent;
|
723
|
+
transform: translateY(-28px) skewY(-20deg);
|
724
|
+
}
|
725
|
+
|
726
|
+
&:after {
|
727
|
+
border-right: 7.5px solid transparent;
|
728
|
+
transform: translate(7.5px, -28px) skewY(20deg);
|
729
|
+
}
|
730
|
+
}
|
731
|
+
|
711
732
|
@keyframes mapboxgl-user-location-dot-pulse {
|
712
733
|
0% {
|
713
734
|
transform: scale(1);
|
@@ -768,3 +789,35 @@ a.mapboxgl-ctrl-logo {
|
|
768
789
|
display: none;
|
769
790
|
}
|
770
791
|
}
|
792
|
+
|
793
|
+
.mapboxgl-scroll-zoom-blocker, .mapboxgl-touch-pan-blocker {
|
794
|
+
color: #fff;
|
795
|
+
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;
|
796
|
+
justify-content: center;
|
797
|
+
text-align: center;
|
798
|
+
position: absolute;
|
799
|
+
display: flex;
|
800
|
+
align-items: center;
|
801
|
+
top: 0;
|
802
|
+
left: 0;
|
803
|
+
width: 100%;
|
804
|
+
height: 100%;
|
805
|
+
background: rgba(0, 0, 0, 0.7);
|
806
|
+
opacity: 0;
|
807
|
+
pointer-events: none;
|
808
|
+
transition: opacity .75s ease-in-out;
|
809
|
+
transition-delay: 1s;
|
810
|
+
}
|
811
|
+
|
812
|
+
.mapboxgl-scroll-zoom-blocker-show, .mapboxgl-touch-pan-blocker-show {
|
813
|
+
opacity: 1;
|
814
|
+
transition: opacity .1s ease-in-out;
|
815
|
+
}
|
816
|
+
|
817
|
+
.mapboxgl-canvas-container.mapboxgl-touch-pan-blocker-override.mapboxgl-scrollable-page {
|
818
|
+
touch-action: pan-x pan-y;
|
819
|
+
|
820
|
+
.mapboxgl-canvas {
|
821
|
+
touch-action: pan-x pan-y;
|
822
|
+
}
|
823
|
+
}
|
data/plugins.yaml
CHANGED
@@ -2,22 +2,22 @@
|
|
2
2
|
#
|
3
3
|
plugins:
|
4
4
|
geocoder:
|
5
|
-
version: '4.
|
5
|
+
version: '4.7.2'
|
6
6
|
js: 'mapbox-gl-geocoder.min.js'
|
7
7
|
css: 'mapbox-gl-geocoder.css'
|
8
8
|
url: https://github.com/mapbox/mapbox-gl-geocoder
|
9
9
|
directions:
|
10
|
-
version: '4.0
|
10
|
+
version: '4.1.0'
|
11
11
|
js: 'mapbox-gl-directions.js'
|
12
12
|
css: 'mapbox-gl-directions.css'
|
13
13
|
url: https://github.com/mapbox/mapbox-gl-directions
|
14
14
|
compare:
|
15
|
-
version: '0.
|
15
|
+
version: '0.4.0'
|
16
16
|
js: 'mapbox-gl-compare.js'
|
17
17
|
css: 'mapbox-gl-compare.css'
|
18
18
|
url: https://github.com/mapbox/mapbox-gl-compare
|
19
19
|
draw:
|
20
|
-
version: '1.
|
20
|
+
version: '1.2.2'
|
21
21
|
js: 'mapbox-gl-draw.js'
|
22
22
|
css: 'mapbox-gl-draw.css'
|
23
23
|
url: https://github.com/mapbox/mapbox-gl-draw
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mapbox-gl-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nikita Bulai
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -139,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: '0'
|
141
141
|
requirements: []
|
142
|
-
rubygems_version: 3.
|
142
|
+
rubygems_version: 3.0.8
|
143
143
|
signing_key:
|
144
144
|
specification_version: 4
|
145
145
|
summary: an asset gemification of the Mapbox GL JS library
|