Disable warnings about property access

This commit is contained in:
Tom Payne
2014-03-23 19:04:15 +01:00
parent 4a8ef6a229
commit b91371348e
2 changed files with 9 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ goog.require('ol.style.Style');
var styleFunction = (function() {
/* jshint -W069 */
var styles = {};
var image = new ol.style.Circle({
radius: 5,
@@ -57,6 +58,7 @@ var styleFunction = (function() {
return function(feature, resolution) {
return styles[feature.getGeometry().getType()] || styles['default'];
};
/* jshint +W069 */
})();
var source = new ol.source.GeoJSON(
@@ -165,6 +167,7 @@ var layer = new ol.layer.Vector({
});
var overlayStyle = (function() {
/* jshint -W069 */
var styles = {};
styles['Polygon'] = [
new ol.style.Style({
@@ -225,6 +228,7 @@ var overlayStyle = (function() {
return function(feature, resolution) {
return styles[feature.getGeometry().getType()];
};
/* jshint +W069 */
})();
var select = new ol.interaction.Select({