Disable warnings about property access
This commit is contained in:
@@ -13,6 +13,7 @@ goog.require('ol.style.Style');
|
|||||||
|
|
||||||
|
|
||||||
var styleFunction = (function() {
|
var styleFunction = (function() {
|
||||||
|
/* jshint -W069 */
|
||||||
var styles = {};
|
var styles = {};
|
||||||
var image = new ol.style.Circle({
|
var image = new ol.style.Circle({
|
||||||
radius: 5,
|
radius: 5,
|
||||||
@@ -57,6 +58,7 @@ var styleFunction = (function() {
|
|||||||
return function(feature, resolution) {
|
return function(feature, resolution) {
|
||||||
return styles[feature.getGeometry().getType()] || styles['default'];
|
return styles[feature.getGeometry().getType()] || styles['default'];
|
||||||
};
|
};
|
||||||
|
/* jshint +W069 */
|
||||||
})();
|
})();
|
||||||
|
|
||||||
var source = new ol.source.GeoJSON(
|
var source = new ol.source.GeoJSON(
|
||||||
@@ -165,6 +167,7 @@ var layer = new ol.layer.Vector({
|
|||||||
});
|
});
|
||||||
|
|
||||||
var overlayStyle = (function() {
|
var overlayStyle = (function() {
|
||||||
|
/* jshint -W069 */
|
||||||
var styles = {};
|
var styles = {};
|
||||||
styles['Polygon'] = [
|
styles['Polygon'] = [
|
||||||
new ol.style.Style({
|
new ol.style.Style({
|
||||||
@@ -225,6 +228,7 @@ var overlayStyle = (function() {
|
|||||||
return function(feature, resolution) {
|
return function(feature, resolution) {
|
||||||
return styles[feature.getGeometry().getType()];
|
return styles[feature.getGeometry().getType()];
|
||||||
};
|
};
|
||||||
|
/* jshint +W069 */
|
||||||
})();
|
})();
|
||||||
|
|
||||||
var select = new ol.interaction.Select({
|
var select = new ol.interaction.Select({
|
||||||
|
|||||||
@@ -243,6 +243,8 @@ ol.source.WMTS.prototype.updateDimensions = function(dimensions) {
|
|||||||
*/
|
*/
|
||||||
ol.source.WMTS.optionsFromCapabilities = function(wmtsCap, layer) {
|
ol.source.WMTS.optionsFromCapabilities = function(wmtsCap, layer) {
|
||||||
|
|
||||||
|
/* jshint -W069 */
|
||||||
|
|
||||||
// TODO: add support for TileMatrixLimits
|
// TODO: add support for TileMatrixLimits
|
||||||
|
|
||||||
var layers = wmtsCap['contents']['layers'];
|
var layers = wmtsCap['contents']['layers'];
|
||||||
@@ -328,4 +330,7 @@ ol.source.WMTS.optionsFromCapabilities = function(wmtsCap, layer) {
|
|||||||
style: style,
|
style: style,
|
||||||
dimensions: dimensions
|
dimensions: dimensions
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* jshint +W069 */
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user