openlayers-rails 0.0.3 → 0.0.4

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.
@@ -7,6 +7,7 @@ div.olMap {
7
7
 
8
8
  div.olMapViewport {
9
9
  text-align: left;
10
+ -ms-touch-action: none;
10
11
  }
11
12
 
12
13
  div.olLayerDiv {
@@ -408,10 +409,12 @@ span.olGoogleAttribution.hybrid a, span.olGoogleAttribution.satellite a {
408
409
  .olControlEditingToolbar .olControlNavigationItemActive {
409
410
  background-position: -103px -24px;
410
411
  }
411
- .olControlNavToolbar .olControlZoomBoxItemInactive {
412
+ .olControlNavToolbar .olControlZoomBoxItemInactive,
413
+ .olControlEditingToolbar .olControlZoomBoxItemInactive {
412
414
  background-position: -128px -1px;
413
415
  }
414
- .olControlNavToolbar .olControlZoomBoxItemActive {
416
+ .olControlNavToolbar .olControlZoomBoxItemActive,
417
+ .olControlEditingToolbar .olControlZoomBoxItemActive {
415
418
  background-position: -128px -24px;
416
419
  }
417
420
  .olControlEditingToolbar .olControlDrawFeaturePointItemInactive {
@@ -433,7 +436,7 @@ span.olGoogleAttribution.hybrid a, span.olGoogleAttribution.satellite a {
433
436
  background-position: -26px -24px;
434
437
  }
435
438
 
436
- div.olControlZoom {
439
+ div.olControlZoom, div.olControlTextButtonPanel {
437
440
  position: absolute;
438
441
  top: 8px;
439
442
  left: 8px;
@@ -442,29 +445,31 @@ div.olControlZoom {
442
445
  padding: 2px;
443
446
  }
444
447
  div.olControlZoom a {
448
+ font-size: 18px;
449
+ line-height: 19px;
450
+ height: 22px;
451
+ width:22px;
452
+ padding: 0;
453
+ }
454
+ div.olControlZoom a, div.olControlTextButtonPanel .olButton {
445
455
  display: block;
446
456
  margin: 1px;
447
- padding: 0;
448
457
  color: white;
449
- font-size: 18px;
450
458
  font-family: 'Lucida Grande', Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif;
451
459
  font-weight: bold;
452
460
  text-decoration: none;
453
461
  text-align: center;
454
- height: 22px;
455
- width:22px;
456
- line-height: 19px;
457
462
  background: #130085; /* fallback for IE - IE6 requires background shorthand*/
458
463
  background: rgba(0, 60, 136, 0.5);
459
464
  filter: alpha(opacity=80);
460
465
  }
461
- div.olControlZoom a:hover {
466
+ div.olControlZoom a:hover, div.olControlTextButtonPanel .olButton:hover {
462
467
  background: #130085; /* fallback for IE */
463
468
  background: rgba(0, 60, 136, 0.7);
464
469
  filter: alpha(opacity=100);
465
470
  }
466
471
  @media only screen and (max-width: 600px) {
467
- div.olControlZoom a:hover {
472
+ div.olControlZoom a:hover, div.olControlTextButtonPanel .olButton:hover {
468
473
  background: rgba(0, 60, 136, 0.5);
469
474
  }
470
475
  }
@@ -475,6 +480,31 @@ a.olControlZoomOut {
475
480
  border-radius: 0 0 4px 4px;
476
481
  }
477
482
 
483
+ /**
484
+ * TextButtonPanel
485
+ */
486
+
487
+ div.olControlTextButtonPanel .olButton {
488
+ float: left;
489
+ padding: 4px;
490
+ }
491
+
492
+ div.olControlTextButtonPanel.vertical .olButton {
493
+ float: none;
494
+ }
495
+ div.olControlTextButtonPanel .olButton:first-child {
496
+ border-radius: 4px 0 0 4px;
497
+ }
498
+ div.olControlTextButtonPanel .olButton:last-child {
499
+ border-radius: 0 4px 4px 0;
500
+ }
501
+ div.olControlTextButtonPanel.vertical .olButton:first-child {
502
+ border-radius: 4px 4px 0 0
503
+ }
504
+ div.olControlTextButtonPanel.vertical .olButton:last-child {
505
+ border-radius: 0 0 4px 4px;
506
+ }
507
+
478
508
 
479
509
  /**
480
510
  * Animations
@@ -487,8 +517,25 @@ a.olControlZoomOut {
487
517
  transition: opacity 0.2s linear;
488
518
  }
489
519
 
520
+ /* Turn on GPU support where available */
521
+ .olTileImage {
522
+ -webkit-transform: translateZ(0);
523
+ -moz-transform: translateZ(0);
524
+ -o-transform: translateZ(0);
525
+ -ms-transform: translateZ(0);
526
+ transform: translateZ(0);
527
+ -webkit-backface-visibility: hidden;
528
+ -moz-backface-visibility: hidden;
529
+ -ms-backface-visibility: hidden;
530
+ backface-visibility: hidden;
531
+ -webkit-perspective: 1000;
532
+ -moz-perspective: 1000;
533
+ -ms-perspective: 1000;
534
+ perspective: 1000;
535
+ }
536
+
490
537
  /* when replacing tiles, do not show tile and backbuffer at the same time */
491
- .olTileImage.olTileReplacing {
538
+ .olTileReplacing {
492
539
  display: none;
493
540
  }
494
541
 
@@ -43,21 +43,28 @@ div.olControlZoom a:hover {
43
43
  background: rgba(0, 60, 136, 0.5);
44
44
  }
45
45
  }
46
+ div.olMapViewport {
47
+ -ms-touch-action: none;
48
+ }
46
49
  .olLayerGrid .olTileImage {
47
50
  -webkit-transition: opacity 0.2s linear;
48
51
  -moz-transition: opacity 0.2s linear;
49
52
  -o-transition: opacity 0.2s linear;
50
53
  transition: opacity 0.2s linear;
51
54
  }
52
- /* Enable 3d acceleration when operating on tiles, this is
53
- known to yield better performance on IOS Safari.
54
- http://osgeo-org.1803224.n2.nabble.com/Harware-accelerated-CSS3-animations-for-iOS-td6255560.html
55
-
56
- It also prevents tile blinking effects in iOS 5.
57
- See https://github.com/openlayers/openlayers/issues/511
58
- */
59
- @media (-webkit-transform-3d) {
60
- img.olTileImage {
61
- -webkit-transform: translate3d(0, 0, 0);
62
- }
55
+ /* Turn on GPU support where available */
56
+ .olTileImage {
57
+ -webkit-transform: translateZ(0);
58
+ -moz-transform: translateZ(0);
59
+ -o-transform: translateZ(0);
60
+ -ms-transform: translateZ(0);
61
+ transform: translateZ(0);
62
+ -webkit-backface-visibility: hidden;
63
+ -moz-backface-visibility: hidden;
64
+ -ms-backface-visibility: hidden;
65
+ backface-visibility: hidden;
66
+ -webkit-perspective: 1000;
67
+ -moz-perspective: 1000;
68
+ -ms-perspective: 1000;
69
+ perspective: 1000;
63
70
  }
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openlayers-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
5
- prerelease:
4
+ version: 0.0.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Toms Mikoss
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-10 00:00:00.000000000 Z
11
+ date: 2014-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: railties
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '3.1'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '3.1'
30
27
  description: OpenLayers library packaged for easy inclusion in Ruby on Rails asset
@@ -45,6 +42,7 @@ files:
45
42
  - doc/licenses/BSD-LICENSE.txt
46
43
  - doc/licenses/MIT-LICENSE.txt
47
44
  - lib/openlayers-rails.rb
45
+ - lib/openlayers-rails/engine.rb
48
46
  - lib/openlayers-rails/version.rb
49
47
  - openlayers-rails.gemspec
50
48
  - vendor/assets/images/openlayers/img/blank.gif
@@ -111,26 +109,25 @@ files:
111
109
  - vendor/assets/stylesheets/openlayers/theme/default/style.mobile.css
112
110
  homepage:
113
111
  licenses: []
112
+ metadata: {}
114
113
  post_install_message:
115
114
  rdoc_options: []
116
115
  require_paths:
117
116
  - lib
118
117
  required_ruby_version: !ruby/object:Gem::Requirement
119
- none: false
120
118
  requirements:
121
- - - ! '>='
119
+ - - '>='
122
120
  - !ruby/object:Gem::Version
123
121
  version: '0'
124
122
  required_rubygems_version: !ruby/object:Gem::Requirement
125
- none: false
126
123
  requirements:
127
- - - ! '>='
124
+ - - '>='
128
125
  - !ruby/object:Gem::Version
129
126
  version: '0'
130
127
  requirements: []
131
128
  rubyforge_project:
132
- rubygems_version: 1.8.25
129
+ rubygems_version: 2.0.0
133
130
  signing_key:
134
- specification_version: 3
131
+ specification_version: 4
135
132
  summary: OpenLayers library packaged for easy inclusion in Ruby on Rails asset pipeline.
136
133
  test_files: []