Commit 2b8423a5 authored by Kroustouris Stauros's avatar Kroustouris Stauros

fix pin bug

parent 909263e2
......@@ -8,7 +8,7 @@
{% block bodyclass %}home{% endblock %}
{% block content %}
<div id="map_wrapper">
<div id="map_canvas" style="width:100%; height:600px; overflow: hidden;" data-map-center-lat="{{MAP_CENTER.0}}" data-map-center-lng="{{MAP_CENTER.1}}" data-pin="{% static 'img/edugroup.png' %}" data-city="{% static 'img/city.png' %}" data-country="{% static 'img/country.png' %}" data-markers="{% url get-all-services %}"></div>
<div id="map_canvas" style="width:100%; height:600px; overflow: hidden;" data-map-center-lat="{{MAP_CENTER.0}}" data-map-center-lng="{{MAP_CENTER.1}}" data-group-pin="{% static 'img/edugroup.png' %}" data-pin="{% static 'img/edupin.png' %}" data-city="{% static 'img/city.png' %}" data-country="{% static 'img/country.png' %}" data-markers="{% url get-all-services %}"></div>
</div>
<div class="squares">
<div class="container">
......
......@@ -205,7 +205,7 @@
'map' : map,
'title' : title,
'address' : address,
'icon' : image,
'icon' : pinImg,
});
return marker
}
......@@ -333,21 +333,22 @@
image = '';
infoWindow;
pinImg = mapDiv.data("pin");
pinGrpImg = mapDiv.data("group-pin");
addr = {};
styles = [{
url : mapDiv.data("pin"),
url : pinGrpImg,
height : 54,
width : 63,
textColor : '#ffffff',
textSize : 11
}, {
url : mapDiv.data("pin"),
url : pinGrpImg,
height : 54,
width : 63,
textColor : '#ffffff',
textSize : 11
}, {
url : mapDiv.data("pin"),
url : pinGrpImg,
height : 54,
width : 63,
textColor : '#ffffff',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment