Skip to content

Commit

Permalink
fix marker
Browse files Browse the repository at this point in the history
  • Loading branch information
chiappone committed Nov 23, 2011
1 parent 0b8a01a commit babc356
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions public/javascripts/archden.js
Expand Up @@ -7,6 +7,7 @@ var withinEl = document.getElementById('within');

var parishMarkers = [];
var infowindows = [];
var youMarker;

var image = 'public/images/church2.png';
var you = 'public/images/you.gif';
Expand Down Expand Up @@ -182,8 +183,12 @@ function ArchDen() {
}

$('input#location').val(archden.here.address);

if(youMarker){
youMarker.setMap(null);
}

var marker = new google.maps.Marker({
youMarker = new google.maps.Marker({
position : pos,
map : map,
icon: you
Expand Down Expand Up @@ -321,7 +326,7 @@ function ArchDen() {
map.setCenter(newBounds.getCenter());
}

$('ol#selectable').html('');
$('#mapresults').html('');

archden.buildResultList();

Expand Down

0 comments on commit babc356

Please sign in to comment.