diff options
author | Themefisher Dev <themefisher.dev@gmail.com> | 2020-01-09 07:58:45 +0300 |
---|---|---|
committer | Themefisher Dev <themefisher.dev@gmail.com> | 2020-01-09 07:58:45 +0300 |
commit | 856f27313a359e77ea46c221dbfadf7a21e9411a (patch) | |
tree | 049d8723e72919944e09bca28ef8749272be976a /static | |
parent | ef9aacbdab6fb6f8cbdd4ce4cc968bf0eaf00f3d (diff) |
added map name feature
Diffstat (limited to 'static')
-rw-r--r-- | static/plugins/google-map/gmap.js | 3 |
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'); |