Add comment about ugly typecast

This commit is contained in:
Tom Payne
2013-03-06 13:06:35 +01:00
parent 671ee79c74
commit c9cce57895

View File

@@ -27,6 +27,7 @@ var layers = new ol.Collection([
var map = new ol.Map({
controls: ol.control.defaults({
scaleLine: true,
// FIXME The typecast here is only needed if the example is compiled
scaleLineOptions: /** @type {ol.control.ScaleLineOptions} */ ({
units: ol.control.ScaleLineUnits.DEGREES
})