gmapz 2.0.10 → 2.0.11
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.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/gmapz/version.rb +1 -1
- data/src/js/gmapz/gmapz.js +9 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49dbad51bf9fbf22feb5f63eda94669a8651f0b6
|
4
|
+
data.tar.gz: 168cd2a4a33040ac02fd737fb161532a3fb623da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e6afba8fc2556917da6cfb4b4e841ee151cf7c499f542add7246f9ca755a88979de01baf89bc8efe51450a32393f4f68275b85cbda5682137fd9c7ee10b9481
|
7
|
+
data.tar.gz: 33aa289b907cfddb274edd8348d768d7a8c113a3baac3a2ab8950a569022f3bc198b7b7a8558a22f139e50e9dd2268b040b273a1fffe0018cf456db9af632d3e
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# GMapz v2.
|
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)
|
data/lib/gmapz/version.rb
CHANGED
data/src/js/gmapz/gmapz.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/*
|
2
2
|
====================================
|
3
3
|
GMapz. Yet another gmaps manager
|
4
|
-
by carlos Cabo 2015. V.2.
|
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
|
-
|
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.
|
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-
|
11
|
+
date: 2017-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|