Skip to content

Commit

Permalink
Added getSelection()
Browse files Browse the repository at this point in the history
  • Loading branch information
Demeter Sztanko authored and Demeter Sztanko committed Dec 13, 2013
1 parent f88c68e commit c81b5fd
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/0.1/js/crosslet-min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/0.1/js/crosslet-raw-min.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions dist/0.1/js/crosslet-raw.js
Expand Up @@ -973,6 +973,7 @@ crosslet.MapView = (function(_super) {

function MapView() {
this._renderMap = __bind(this._renderMap, this);
this.getSelection = __bind(this.getSelection, this);
this.hover = __bind(this.hover, this);
this.mouseMove = __bind(this.mouseMove, this);
this.reset = __bind(this.reset, this);
Expand Down Expand Up @@ -1086,6 +1087,10 @@ crosslet.MapView = (function(_super) {
return this.hoverElementRect.attr("width", this.hoverElementTextBB.width + 10).attr("height", this.hoverElementTextBB.height + 10).attr("x", this.hoverElementTextBB.x - 5).attr("y", this.hoverElementTextBB.y - 5);
};

MapView.prototype.getSelection = function() {
return this.panel.getSelection();
};

MapView.prototype.default_hover = function(data, value) {
return data.properties[this.config.map.geo.name_field] + " - " + value;
};
Expand Down
5 changes: 5 additions & 0 deletions dist/0.1/js/crosslet.js
Expand Up @@ -1375,6 +1375,7 @@ crosslet.MapView = (function(_super) {

function MapView() {
this._renderMap = __bind(this._renderMap, this);
this.getSelection = __bind(this.getSelection, this);
this.hover = __bind(this.hover, this);
this.mouseMove = __bind(this.mouseMove, this);
this.reset = __bind(this.reset, this);
Expand Down Expand Up @@ -1488,6 +1489,10 @@ crosslet.MapView = (function(_super) {
return this.hoverElementRect.attr("width", this.hoverElementTextBB.width + 10).attr("height", this.hoverElementTextBB.height + 10).attr("x", this.hoverElementTextBB.x - 5).attr("y", this.hoverElementTextBB.y - 5);
};

MapView.prototype.getSelection = function() {
return this.panel.getSelection();
};

MapView.prototype.default_hover = function(data, value) {
return data.properties[this.config.map.geo.name_field] + " - " + value;
};
Expand Down
Binary file modified dist/crosslet-0.1.zip
Binary file not shown.
2 changes: 2 additions & 0 deletions src/coffee/views/mapView.coffee
Expand Up @@ -111,6 +111,8 @@ class crosslet.MapView extends Backbone.View
.attr("y",@hoverElementTextBB.y-5)
#console.log(text)

getSelection: () =>
return @panel.getSelection()
default_hover: (data,value) ->
##console.log(@config.map.geo.name_field)
data.properties[@config.map.geo.name_field] + " - " + value
Expand Down

0 comments on commit c81b5fd

Please sign in to comment.