jekyll-maps 2.2.0 → 2.3.0
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/History.md +5 -0
- data/lib/jekyll-maps/google_map_api.js +11 -8
- data/lib/jekyll-maps/location_finder.rb +4 -1
- data/lib/jekyll-maps/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e26fa740a142e97113f43ab66748b40750dfaf4d8b33f84cb1ff43d20a827ea5
|
4
|
+
data.tar.gz: 70eac67645b3e5a4cc59075382a5d86620bd74e92e30346255411db432b45a88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ec488a7c7638c64a6cb07c8d93aba74a62168d3c0afe23f981cf0ee13082105b874de1cdd34e61da356fe4a9c7761ea79002d45a3621163d7447fa03e45af4f
|
7
|
+
data.tar.gz: 76232fd2b19eb1f942fdb4a78ff3ebdcbfcdfbee5d3d06974c5ecd470b9c1caa6607eff6eee22429eca172813a796f395c16badfcd80384ef1c1e48242e84ac0
|
data/History.md
CHANGED
@@ -81,6 +81,7 @@ var jekyllMaps = (function() {
|
|
81
81
|
image: location.image,
|
82
82
|
icon: location.icon || mapOptions.markerIcon,
|
83
83
|
url: markerUrl(mapOptions.baseUrl, location.url),
|
84
|
+
url_text: location.url_text,
|
84
85
|
map: map
|
85
86
|
})
|
86
87
|
if (mapOptions.showMarkerPopup) marker.addListener('click', markerPopup)
|
@@ -95,16 +96,18 @@ var jekyllMaps = (function() {
|
|
95
96
|
}
|
96
97
|
|
97
98
|
function markerPopup() {
|
98
|
-
var
|
99
|
-
|
100
|
-
|
99
|
+
var content = '<div class="map-info-window"><h5>' + this.title + '</h5>'
|
100
|
+
var imageTag =
|
101
|
+
this.image.length > 0 &&
|
102
|
+
'<img src="' + this.image + '" alt="' + this.title + '"/>'
|
101
103
|
if (this.url.length > 0) {
|
102
|
-
var
|
103
|
-
|
104
|
-
} else if (
|
105
|
-
|
104
|
+
var linkContent = imageTag || this.url_text || 'View'
|
105
|
+
content += '<a href="' + this.url + '">' + linkContent + '</a>'
|
106
|
+
} else if (imageTag) {
|
107
|
+
content += imageTag
|
106
108
|
}
|
107
|
-
|
109
|
+
content += '</div>'
|
110
|
+
infoWindow.setContent(content)
|
108
111
|
infoWindow.open(map, this)
|
109
112
|
}
|
110
113
|
}
|
@@ -89,7 +89,9 @@ module Jekyll
|
|
89
89
|
@documents.each do |document|
|
90
90
|
if document["location"].is_a?(Array)
|
91
91
|
document["location"].each do |location|
|
92
|
-
|
92
|
+
point = convert(document, location)
|
93
|
+
point[:url] = "" if point[:url] == fetch_url(document)
|
94
|
+
locations.push(point)
|
93
95
|
end
|
94
96
|
else
|
95
97
|
locations.push(convert(document, document["location"]))
|
@@ -106,6 +108,7 @@ module Jekyll
|
|
106
108
|
:title => location["title"] || document["title"],
|
107
109
|
:icon => location["marker_icon"] || document["marker_icon"],
|
108
110
|
:url => location["url"] || fetch_url(document),
|
111
|
+
:url_text => location["url_text"],
|
109
112
|
:image => location["image"] || document["image"] || ""
|
110
113
|
}
|
111
114
|
end
|
data/lib/jekyll-maps/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-maps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anatoliy Yastreb
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|