var BlueprintScaler = ModalView.extend({ el: ".blueprintScaler", events: { "change [name=blueprint-dimensions]": "changeDimensions", "change [name=blueprint-units]": "changeUnits", "click #saveBlueprint": "save", }, initialize: function(){ this.$blueprintMap = this.$("#blueprintMap") this.$blueprintDimensionsRapper = this.$("#blueprintDimensions") this.$dimensions = this.$("[name=blueprint-dimensions]") this.$units = this.$("[name=blueprint-units]") this.$save = this.$("#saveBlueprint") this.map = map = new Map ({ type: "ortho", el: this.$blueprintMap.get(0), width: window.innerWidth/2, height: window.innerHeight, zoom: -2, zoom_min: -6.2, zoom_max: 1, }) map.ui.add_tool("arrow", new ArrowTool) map.ui.add_tool("position", new PositionTool) map.ui.set_tool("position") }, pick: function(){ }, changeDimensions: function(){ }, changeUnits: function(){ }, save: function(){ }, })