Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/themefisher/Hargo-hugo-ecommerce-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorThemefisher Dev <themefisher.dev@gmail.com>2020-01-09 07:58:45 +0300
committerThemefisher Dev <themefisher.dev@gmail.com>2020-01-09 07:58:45 +0300
commit856f27313a359e77ea46c221dbfadf7a21e9411a (patch)
tree049d8723e72919944e09bca28ef8749272be976a /static
parentef9aacbdab6fb6f8cbdd4ce4cc968bf0eaf00f3d (diff)
added map name feature
Diffstat (limited to 'static')
-rw-r--r--static/plugins/google-map/gmap.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/static/plugins/google-map/gmap.js b/static/plugins/google-map/gmap.js
index 006fd4e..d291e33 100644
--- a/static/plugins/google-map/gmap.js
+++ b/static/plugins/google-map/gmap.js
@@ -5,6 +5,7 @@ function initialize() {
var latitude = $('#map_canvas').attr('data-latitude');
var longitude = $('#map_canvas').attr('data-longitude');
var mapMarker = $('#map_canvas').attr('data-marker');
+ var mapMarkerName = $('#map_canvas').attr('data-marker-name');
var nottingham = new google.maps.LatLng(latitude, longitude);
var style = [{
"featureType": "road",
@@ -70,7 +71,7 @@ function initialize() {
position: nottingham,
map: map,
icon: pinIcon,
- title: 'Hargo'
+ title: mapMarkerName
});
}
var map = document.getElementById('map_canvas');