leaflet-rails 0.4.4 → 0.4.5

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.
@@ -1,5 +1,5 @@
1
1
  module Leaflet
2
2
  module Rails
3
- VERSION = "0.4.4"
3
+ VERSION = "0.4.5"
4
4
  end
5
5
  end
@@ -21,7 +21,7 @@ if (typeof exports !== undefined + '') {
21
21
  window.L = L;
22
22
  }
23
23
 
24
- L.version = '0.4.4';
24
+ L.version = '0.4.5';
25
25
 
26
26
 
27
27
  /*
@@ -788,11 +788,11 @@ L.DomUtil = {
788
788
  },
789
789
 
790
790
  getScaleString: function (scale, origin) {
791
- var preTranslateStr = L.DomUtil.getTranslateString(origin),
792
- scaleStr = ' scale(' + scale + ') ',
793
- postTranslateStr = L.DomUtil.getTranslateString(origin.multiplyBy(-1));
794
791
 
795
- return preTranslateStr + scaleStr + postTranslateStr;
792
+ var preTranslateStr = L.DomUtil.getTranslateString(origin.add(origin.multiplyBy(-1 * scale))),
793
+ scaleStr = ' scale(' + scale + ') ';
794
+
795
+ return preTranslateStr + scaleStr;
796
796
  },
797
797
 
798
798
  setPosition: function (el, point, disable3D) {
@@ -7438,11 +7438,6 @@ L.Map.include(!L.DomUtil.TRANSITION ? {} : {
7438
7438
 
7439
7439
  clearTimeout(this._clearTileBgTimer);
7440
7440
 
7441
- //dumb FireFox hack, I have no idea why this magic zero translate fixes the scale transition problem
7442
- if (L.Browser.gecko || window.opera) {
7443
- tileBg.style[transform] += ' translate(0,0)';
7444
- }
7445
-
7446
7441
  L.Util.falseFn(tileBg.offsetWidth); //hack to make sure transform is updated before running animation
7447
7442
 
7448
7443
  var scaleStr = L.DomUtil.getScaleString(scale, origin),
@@ -365,8 +365,9 @@
365
365
  .leaflet-popup-content-wrapper, .leaflet-popup-tip {
366
366
  background: white;
367
367
 
368
- box-shadow: 0 3px 14px rgba(0,0,0,0.35);
369
- -webkit-box-shadow: 0 3px 18px rgba(0,0,0,0.33);
368
+ box-shadow: 0 3px 10px #888;
369
+ -moz-box-shadow: 0 3px 10px #888;
370
+ -webkit-box-shadow: 0 3px 14px #999;
370
371
  }
371
372
  .leaflet-popup-content-wrapper {
372
373
  -moz-border-radius: 20px;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leaflet-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-23 00:00:00.000000000 Z
12
+ date: 2012-10-30 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: This gem provides the leaflet.js map display library for your Rails 3
15
15
  application.
@@ -48,18 +48,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
48
48
  - - ! '>='
49
49
  - !ruby/object:Gem::Version
50
50
  version: '0'
51
- segments:
52
- - 0
53
- hash: -1604447338588129085
54
51
  required_rubygems_version: !ruby/object:Gem::Requirement
55
52
  none: false
56
53
  requirements:
57
54
  - - ! '>='
58
55
  - !ruby/object:Gem::Version
59
56
  version: '0'
60
- segments:
61
- - 0
62
- hash: -1604447338588129085
63
57
  requirements: []
64
58
  rubyforge_project: leaflet-rails
65
59
  rubygems_version: 1.8.23