Browse Source

Icone de ponto no mapa em um unico arquivo

producao
Marcio Mazza 10 years ago
parent
commit
8ef295a8e2
  1. 2
      sigi/apps/diagnosticos/templates/diagnosticos/mapa.html
  2. 2
      sigi/apps/metas/views.py
  3. 4
      sigi/apps/servicos/templates/servicos/mapa.html
  4. 2
      templates/index.html

2
sigi/apps/diagnosticos/templates/diagnosticos/mapa.html

@ -29,7 +29,7 @@
map: map,
position: new google.maps.LatLng(municipio.lat, municipio.lng),
title: municipio.nome,
icon: '{{ MEDIA_URL }}images/mapmarker.png'
icon: "{% static 'img/mapmarker.png' %}"
}
var mark = new google.maps.Marker(markData);
var infoWin = new google.maps.InfoWindow({content:

2
sigi/apps/metas/views.py

@ -295,7 +295,7 @@ def gera_map_data_file(cronjob=False):
if c.pk not in casas:
casa = {
'nome': c.nome + ', ' + c.municipio.uf.sigla,
'icone': '/static/img/' + 'mapmarker' + '.png',
'icone': '/static/img/mapmarker.png',
'lat': str(c.municipio.latitude),
'lng': str(c.municipio.longitude),
'estado': c.municipio.uf.sigla,

4
sigi/apps/servicos/templates/servicos/mapa.html

@ -4,7 +4,7 @@
{% block extrahead %}
{{ block.super }}
{% load staticfiles %}
{% load static from staticfiles %}
<script type="text/javascript" src="{% static "admin/js/core.js" %}"></script>
<script type="text/javascript" src="{% static "admin/js/jquery.min.js" %}"></script>
<script type="text/javascript" src="{% static "admin/js/jquery.init.js" %}"></script>
@ -29,7 +29,7 @@
map: map,
position: new google.maps.LatLng(municipio.lat, municipio.lng),
title: municipio.nome,
icon: '{{ MEDIA_URL }}images/mapmarker.png'
icon: "{% static 'img/mapmarker.png' %}"
}
var mark = new google.maps.Marker(markData);
var infoWin = new google.maps.InfoWindow({content:

2
templates/index.html

@ -32,7 +32,7 @@
map: map,
position: new google.maps.LatLng(municipio.lat, municipio.lng),
title: municipio.nome,
icon: '{{ STATIC_URL }}img/mapmarker.png'
icon: "{% static 'img/mapmarker.png' %}"
}
var mark = new google.maps.Marker(markData);
var infoWin = new google.maps.InfoWindow({content:

Loading…
Cancel
Save