gmapz 2.0.10 → 2.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d04c1e0e53b4cc853fad0a95142657f3b1cc982
4
- data.tar.gz: 8375bfc2f1b027264fc667fee98057952f4e62b3
3
+ metadata.gz: 49dbad51bf9fbf22feb5f63eda94669a8651f0b6
4
+ data.tar.gz: 168cd2a4a33040ac02fd737fb161532a3fb623da
5
5
  SHA512:
6
- metadata.gz: e8e0c7420a77c3de333c341445bb57429805f395f1f2bd994f4dbc8884ab9b97ad01f414a7591c90f0c5304ea41b4e1189ab869b90363ed50d315c12f23aba39
7
- data.tar.gz: c64c9e92dfdef30925dcf1e4cce15560a383bb1fdc56236dd95d4bfede843164881598f1c2a0838d86d8e8b3903a46e742d008adde8e479455501bdfdbd07e4e
6
+ metadata.gz: 7e6afba8fc2556917da6cfb4b4e841ee151cf7c499f542add7246f9ca755a88979de01baf89bc8efe51450a32393f4f68275b85cbda5682137fd9c7ee10b9481
7
+ data.tar.gz: 33aa289b907cfddb274edd8348d768d7a8c113a3baac3a2ab8950a569022f3bc198b7b7a8558a22f139e50e9dd2268b040b273a1fffe0018cf456db9af632d3e
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # GMapz v2.10
1
+ # GMapz v2.11
2
2
 
3
3
  GMapz is yet another Google Maps JS library. It eases the creation of Google Maps, it's **responsive**, supports the creation of **multiple instances in the same page** (each one with its own settings), the creation of **custom styled infowindows**, and other useful helpers.
4
4
  <br><br>
@@ -46,6 +46,8 @@ If you want to customize the map **infobox windows** you can use `src/css/gmapz-
46
46
 
47
47
  # Changelog
48
48
 
49
+ - 2.11 (2017/09/19)
50
+ * If pin image is `.svg` it look for an `.png` in the same path if the web browser is IE (that does not support `.svg` pins)
49
51
  - 2.10 (2017/04/19)
50
52
  * Rails Gem
51
53
  - 2.09 (2016/07/15)
@@ -1,3 +1,3 @@
1
1
  module GMapz
2
- VERSION = "2.0.10"
2
+ VERSION = "2.0.11"
3
3
  end
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  ====================================
3
3
  GMapz. Yet another gmaps manager
4
- by carlos Cabo 2015. V.2.10
4
+ by carlos Cabo 2015. V.2.11
5
5
  https://github.com/carloscabo/gmapz
6
6
  ====================================
7
7
  */
@@ -111,7 +111,14 @@
111
111
  // Pins
112
112
  if (_p.hasOwnProperty(key) && _p[key].pin.img) {
113
113
  this.pins[key] = {};
114
- this.pins[key].pin = new google.maps.MarkerImage(_p[key].pin.img,
114
+
115
+ // Replace .svg in IE by .png
116
+ var temp_pin_img = _p[key].pin.img;
117
+ if ((!!navigator.userAgent.match(/Trident/g) || !!navigator.userAgent.match(/MSIE/g)) && temp_pin_img.split('.').pop().toLowerCase() === 'svg' ) {
118
+ temp_pin_img = temp_pin_img.substr(0, temp_pin_img.lastIndexOf('.')) + '.png';
119
+ }
120
+
121
+ this.pins[key].pin = new google.maps.MarkerImage(temp_pin_img,
115
122
  // width / height
116
123
  new google.maps.Size(_p[key].pin.size[0], _p[key].pin.size[1]),
117
124
  // origin
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gmapz
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.10
4
+ version: 2.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - carloscabo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-19 00:00:00.000000000 Z
11
+ date: 2017-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler