Skip to content

Commit

Permalink
Hide the ashokas on start
Browse files Browse the repository at this point in the history
  • Loading branch information
javierarce committed May 25, 2012
1 parent 18c245a commit 11e08c4
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions js/app.js
Expand Up @@ -788,6 +788,16 @@ $(function () {
this.addAgencies();
this.addAshokas();
this.addProjects();

var that = this;

setTimeout(function() {

mapView.removeOverlay("ashokas");
$("#ashokas").removeClass("selected");

}, 500);

},
enableFilters: function() {
if (!disabledFilters) {
Expand Down Expand Up @@ -822,11 +832,13 @@ $(function () {
},
removeMarkers:function(name) {

for (var i = 0; i < this.overlays[name].length; i++){
this.overlays[name][i].hide(true);
}
if (this.overlays[name]) {
for (var i = 0; i < this.overlays[name].length; i++){
this.overlays[name][i].hide(true);
}

this.enableFilters();
this.enableFilters();
}
},
removeProjects: function(name) {
if (this.circles.length > 0) { // Remove circles
Expand Down

0 comments on commit 11e08c4

Please sign in to comment.