From e96d56215b49a70a9c824ff610eb829c55eb9018 Mon Sep 17 00:00:00 2001 From: Tom Payne Date: Fri, 13 Dec 2013 19:16:05 +0100 Subject: [PATCH] Add typecasts so examples compile --- examples/bind-input.js | 5 +++-- examples/geolocation.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/bind-input.js b/examples/bind-input.js index 6668f1bed7..52deeb0c07 100644 --- a/examples/bind-input.js +++ b/examples/bind-input.js @@ -57,9 +57,10 @@ brightness.bindTo('value', layer, 'brightness') var rotation = new ol.dom.Input(document.getElementById('rotation')); -rotation.bindTo('value', map.getView(), 'rotation') +rotation.bindTo('value', /** @type {ol.View2D} */ (map.getView()), 'rotation') .transform(parseFloat, String); var resolution = new ol.dom.Input(document.getElementById('resolution')); -resolution.bindTo('value', map.getView(), 'resolution') +resolution.bindTo('value', + /** @type {ol.View2D} */ (map.getView()), 'resolution') .transform(parseFloat, String); diff --git a/examples/geolocation.js b/examples/geolocation.js index fc0d2ac62e..850e1b226f 100644 --- a/examples/geolocation.js +++ b/examples/geolocation.js @@ -24,7 +24,7 @@ var map = new ol.Map({ }); var geolocation = new ol.Geolocation(); -geolocation.bindTo('projection', map.getView()); +geolocation.bindTo('projection', /** @type {ol.View2D} */ (map.getView())); var track = new ol.dom.Input(document.getElementById('track')); track.bindTo('checked', geolocation, 'tracking');