Browse Source

Correcao na construcao da url do mapdata

stable/2.0
Breno 11 years ago
parent
commit
ee78dfb8ca
  1. 2
      sigi/apps/metas/views.py
  2. 2
      sigiStatic/js/metas/mapa.js

2
sigi/apps/metas/views.py

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

2
sigiStatic/js/metas/mapa.js

@ -39,7 +39,7 @@
map: null, // Just create the mark, dont plot it
position: new google.maps.LatLng(parseFloat(municipio.lat), parseFloat(municipio.lng)),
title: municipio.nome,
icon: '/media/images/' + municipio.icone + '.png'
icon: municipio.icone
}
var mark = new google.maps.Marker(markData);
var infoWin = new google.maps.InfoWindow({content: '<strong>' + municipio.nome + '</strong><br/><br/>' + municipio.info });

Loading…
Cancel
Save