diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-01-10 13:25:38 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-01-10 13:25:38 +0000 |
commit | f7f5918e7a9f9eb00e235232df9da43ebdd63944 (patch) | |
tree | 4e73609f8aabf9f1d2d12e8b423aadcf855ce162 /web/js/map-google-ol.js | |
parent | 70dacd4fe2de9eef582ae7e68ab9cc8ad2ead5ba (diff) |
Add JSHint configuration, tidy up any warnings.
Diffstat (limited to 'web/js/map-google-ol.js')
-rw-r--r-- | web/js/map-google-ol.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web/js/map-google-ol.js b/web/js/map-google-ol.js index 7369a8e9f..99670d4f2 100644 --- a/web/js/map-google-ol.js +++ b/web/js/map-google-ol.js @@ -10,6 +10,7 @@ $(function(){ fixmystreet.map.setBaseLayer(fixmystreet.map.layers[1]); } }); + // jshint undef:false if (typeof fixmystreet_google_default !== 'undefined' && fixmystreet_google_default == 'satellite') { $('#map_layer_toggle').click(); } @@ -36,7 +37,9 @@ fixmystreet.maps.config = function() { var road_layer = {}; // Empty object defaults to standard road layer function apply_map_styles() { + // jshint undef:false var styledMapType = new google.maps.StyledMapType(fixmystreet_google_maps_custom_style); + // jshint undef:true this.mapObject.mapTypes.set('styled', styledMapType); this.mapObject.setMapTypeId('styled'); } |