Permalink
Browse files

revert previous commit

  • Loading branch information...
1 parent 7866af1 commit 30955f21f1720abe3de43f98ca4b9ec39b484810 @mlouro mlouro committed Jan 17, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 geotagging/static/js/app/Spot.js
@@ -54,6 +54,8 @@ $$.SpotView = Backbone.View.extend({
this.marker = new OpenLayers.Marker(
this.model.getLatLng(),
this.getIcon().clone());
+
+ this.model.layer.toOpenLayers().addMarker(this.marker);
return this;
}
@@ -124,7 +126,7 @@ $$.LayerView = Backbone.View.extend({
spot.view = new $$.SpotView({
model: spot
});
- this.layer.addMarker(spot.view.render().marker);
+ spot.view.render();
},
render: function () {

0 comments on commit 30955f2

Please sign in to comment.