diff --git a/sigi/apps/metas/views.py b/sigi/apps/metas/views.py index c43cc5b..7b3576b 100644 --- a/sigi/apps/metas/views.py +++ b/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, diff --git a/sigiStatic/js/metas/mapa.js b/sigiStatic/js/metas/mapa.js index a3b1b4b..c2130e9 100644 --- a/sigiStatic/js/metas/mapa.js +++ b/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: '' + municipio.nome + '

' + municipio.info });