Add comment about ugly typecast
This commit is contained in:
@@ -27,6 +27,7 @@ var layers = new ol.Collection([
|
|||||||
var map = new ol.Map({
|
var map = new ol.Map({
|
||||||
controls: ol.control.defaults({
|
controls: ol.control.defaults({
|
||||||
scaleLine: true,
|
scaleLine: true,
|
||||||
|
// FIXME The typecast here is only needed if the example is compiled
|
||||||
scaleLineOptions: /** @type {ol.control.ScaleLineOptions} */ ({
|
scaleLineOptions: /** @type {ol.control.ScaleLineOptions} */ ({
|
||||||
units: ol.control.ScaleLineUnits.DEGREES
|
units: ol.control.ScaleLineUnits.DEGREES
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user