mapbox-gl-rails 1.8.1 → 1.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/README.md +8 -0
- data/app/assets/javascripts/mapbox-gl.js +6517 -3882
- data/app/assets/stylesheets/mapbox-gl.scss +52 -34
- data/lib/mapbox-gl/rails/version.rb +2 -2
- data/mapbox-gl-rails.gemspec +1 -1
- data/test/dummy/app/assets/config/manifest.js +2 -0
- metadata +13 -5
@@ -3,12 +3,17 @@
|
|
3
3
|
overflow: hidden;
|
4
4
|
position: relative;
|
5
5
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
6
|
-
|
6
|
+
}
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
.mapboxgl-canvas {
|
9
|
+
position: absolute;
|
10
|
+
left: 0;
|
11
|
+
top: 0;
|
12
|
+
}
|
13
|
+
|
14
|
+
.mapboxgl-map:-webkit-full-screen {
|
15
|
+
width: 100%;
|
16
|
+
height: 100%;
|
12
17
|
}
|
13
18
|
|
14
19
|
.mapboxgl-canary {
|
@@ -179,7 +184,7 @@
|
|
179
184
|
}
|
180
185
|
}
|
181
186
|
|
182
|
-
.mapboxgl-ctrl-group button:focus {
|
187
|
+
.mapboxgl-ctrl-attrib-button:focus, .mapboxgl-ctrl-group button:focus {
|
183
188
|
box-shadow: 0 0 2px 2px #0096ff;
|
184
189
|
}
|
185
190
|
|
@@ -460,45 +465,58 @@ a.mapboxgl-ctrl-logo {
|
|
460
465
|
}
|
461
466
|
|
462
467
|
@media screen {
|
463
|
-
.mapboxgl-ctrl-attrib
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
468
|
+
.mapboxgl-ctrl-attrib {
|
469
|
+
&.mapboxgl-compact {
|
470
|
+
min-height: 20px;
|
471
|
+
padding: 2px 24px 2px 0;
|
472
|
+
margin: 10px;
|
473
|
+
position: relative;
|
474
|
+
background-color: #fff;
|
475
|
+
border-radius: 12px;
|
476
|
+
}
|
470
477
|
|
471
|
-
|
472
|
-
padding: 2px
|
478
|
+
&.mapboxgl-compact-show {
|
479
|
+
padding: 2px 28px 2px 8px;
|
473
480
|
visibility: visible;
|
474
|
-
margin-top: 6px;
|
475
481
|
}
|
476
482
|
}
|
477
483
|
|
478
|
-
.mapboxgl-ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact
|
479
|
-
padding: 2px
|
480
|
-
border-radius: 12px
|
484
|
+
.mapboxgl-ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact-show, .mapboxgl-ctrl-top-left > .mapboxgl-ctrl-attrib.mapboxgl-compact-show {
|
485
|
+
padding: 2px 8px 2px 28px;
|
486
|
+
border-radius: 12px;
|
481
487
|
}
|
482
488
|
|
483
|
-
.mapboxgl-ctrl-attrib.mapboxgl-compact {
|
484
|
-
|
485
|
-
|
486
|
-
|
489
|
+
.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner {
|
490
|
+
display: none;
|
491
|
+
}
|
492
|
+
|
493
|
+
.mapboxgl-ctrl-attrib-button {
|
494
|
+
display: none;
|
495
|
+
cursor: pointer;
|
496
|
+
position: absolute;
|
497
|
+
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E");
|
498
|
+
background-color: hsla(0, 0%, 100%, 0.5);
|
499
|
+
width: 24px;
|
500
|
+
height: 24px;
|
501
|
+
box-sizing: border-box;
|
502
|
+
border-radius: 12px;
|
503
|
+
outline: none;
|
504
|
+
top: 0;
|
505
|
+
right: 0;
|
506
|
+
border: 0;
|
507
|
+
}
|
487
508
|
|
488
|
-
|
509
|
+
.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button, .mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button {
|
510
|
+
left: 0;
|
511
|
+
}
|
512
|
+
|
513
|
+
.mapboxgl-ctrl-attrib {
|
514
|
+
&.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner, &.mapboxgl-compact .mapboxgl-ctrl-attrib-button {
|
489
515
|
display: block;
|
490
516
|
}
|
491
517
|
|
492
|
-
|
493
|
-
|
494
|
-
cursor: pointer;
|
495
|
-
position: absolute;
|
496
|
-
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1012 0 6 6 0 10-12 0m5-3a1 1 0 102 0 1 1 0 10-2 0m0 3a1 1 0 112 0v3a1 1 0 11-2 0'/%3E%3C/svg%3E");
|
497
|
-
background-color: hsla(0, 0%, 100%, 0.5);
|
498
|
-
width: 24px;
|
499
|
-
height: 24px;
|
500
|
-
box-sizing: border-box;
|
501
|
-
border-radius: 12px;
|
518
|
+
&.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button {
|
519
|
+
background-color: rgba(0, 0, 0, 0.05);
|
502
520
|
}
|
503
521
|
}
|
504
522
|
|
@@ -9,12 +9,12 @@ module MapboxGl
|
|
9
9
|
end
|
10
10
|
|
11
11
|
##
|
12
|
-
#
|
12
|
+
# Follows Mapbox GL JS versioning.
|
13
13
|
module VERSION
|
14
14
|
# Major version number
|
15
15
|
MAJOR = 1
|
16
16
|
# Minor version number
|
17
|
-
MINOR =
|
17
|
+
MINOR = 13
|
18
18
|
# Smallest version number
|
19
19
|
TINY = 1
|
20
20
|
|
data/mapbox-gl-rails.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |gem|
|
|
20
20
|
gem.add_dependency 'railties', '>= 3.2'
|
21
21
|
|
22
22
|
gem.add_development_dependency 'activesupport'
|
23
|
-
gem.add_development_dependency 'sass-rails'
|
23
|
+
gem.add_development_dependency 'sass-rails', '>= 5.0', '< 6.0'
|
24
24
|
gem.add_development_dependency 'thor'
|
25
25
|
|
26
26
|
gem.required_ruby_version = '>= 1.9.3'
|
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: 1.
|
4
|
+
version: 1.13.1
|
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: 2021-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -44,14 +44,20 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
47
|
+
version: '5.0'
|
48
|
+
- - "<"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '6.0'
|
48
51
|
type: :development
|
49
52
|
prerelease: false
|
50
53
|
version_requirements: !ruby/object:Gem::Requirement
|
51
54
|
requirements:
|
52
55
|
- - ">="
|
53
56
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
57
|
+
version: '5.0'
|
58
|
+
- - "<"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '6.0'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: thor
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -96,6 +102,7 @@ files:
|
|
96
102
|
- mapbox-gl-rails.gemspec
|
97
103
|
- plugins.yaml
|
98
104
|
- test/dummy/.gitignore
|
105
|
+
- test/dummy/app/assets/config/manifest.js
|
99
106
|
- test/dummy/app/assets/stylesheets/sass-import.css.sass
|
100
107
|
- test/dummy/app/assets/stylesheets/scss-import.css.scss
|
101
108
|
- test/dummy/app/assets/stylesheets/sprockets-require.css
|
@@ -132,12 +139,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
139
|
- !ruby/object:Gem::Version
|
133
140
|
version: '0'
|
134
141
|
requirements: []
|
135
|
-
rubygems_version: 3.
|
142
|
+
rubygems_version: 3.1.2
|
136
143
|
signing_key:
|
137
144
|
specification_version: 4
|
138
145
|
summary: an asset gemification of the Mapbox GL JS library
|
139
146
|
test_files:
|
140
147
|
- test/dummy/.gitignore
|
148
|
+
- test/dummy/app/assets/config/manifest.js
|
141
149
|
- test/dummy/app/assets/stylesheets/sass-import.css.sass
|
142
150
|
- test/dummy/app/assets/stylesheets/scss-import.css.scss
|
143
151
|
- test/dummy/app/assets/stylesheets/sprockets-require.css
|