0

Added marker at coordinates in the url

Addresses issue #782
This commit is contained in:
CounterPillow
2012-11-29 18:48:54 +01:00
parent 22cefd69e6
commit bfcb53ede3
3 changed files with 35 additions and 5 deletions

View File

@@ -137,7 +137,7 @@ overviewer.views.CoordboxView = Backbone.View.extend({
}
});
overviewer.views.ProgressView = Backbone.View.extend({
overviewer.views.ProgressView = Backbone.View.extend({
initialize: function() {
this.el.id = 'progressDiv';
this.el.innerHTML = 'Current Render Progress';
@@ -556,3 +556,22 @@ overviewer.views.SpawnIconView = Backbone.View.extend({
}
});
overviewer.views.LocationIconView = Backbone.View.extend({
render: function() {
//
if (overviewer.collections.locationMarker) {
overviewer.collections.locationMarker.setMap(null);
overviewer.collections.locationMarker = null;
}
overviewer.collections.locationMarker = new google.maps.Marker({
'position': overviewer.map.getCenter(),
'map': overviewer.map,
'title': 'location',
'visible': false,
'animation': google.maps.Animation.DROP
});
overviewer.collections.locationMarker.setVisible(true);
}
});