Skip to content

Commit ee13bb1

Browse files
committed
security policy updated, POIs hidden.
1 parent 57259a6 commit ee13bb1

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

src/index.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ doctype html
22
html(lang='en')
33
head
44
title MongoDB
5-
meta(http-equiv="Content-Security-Policy", content="default-src *; script-src 'self' https://maps.googleapis.com https://maps.gstatic.com http://localhost:35729 https://mts0.googleapis.com https://mts1.googleapis.com 'unsafe-eval'; style-src 'self' https://fonts.googleapis.com 'unsafe-inline';")
5+
meta(http-equiv="Content-Security-Policy", content="default-src *; script-src 'self' https://*.googleapis.com https://maps.gstatic.com http://localhost:35729 'unsafe-eval'; style-src 'self' https://fonts.googleapis.com 'unsafe-inline';")
66
meta(name='viewport', content='initial-scale=1')
77
link(rel='stylesheet', href='index.css', charset='UTF-8')
88
body

src/minicharts/d3fns/geo.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ var shared = require('./shared');
44
var debug = require('debug')('scout:minicharts:geo');
55
var GoogleMapsLoader = require('google-maps');
66
var mapStyle = require('./mapstyle');
7-
var SHIFTKEY = 16;
87
var async = require('async');
98
var app = require('ampersand-app');
109

10+
var SHIFTKEY = 16;
11+
1112

1213
/* eslint wrap-iife:0 */
1314
var Singleton = (function() {
@@ -35,7 +36,7 @@ function parallel(options, tasks, cb) {
3536
options = options || {};
3637

3738
// no timeout wrapper; passthrough to async.parallel
38-
if (typeof options.timeoutMS != 'number') return async.parallel(tasks, cb);
39+
if (typeof options.timeoutMS !== 'number') return async.parallel(tasks, cb);
3940

4041
var timeout = setTimeout(function() {
4142
// remove timeout, so we'll know we already erred out

src/minicharts/d3fns/mapstyle.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,19 @@ module.exports = [
2222
},
2323
{
2424
featureType: 'poi',
25-
elementType: 'geometry',
25+
elementType: 'all',
2626
stylers: [
2727
{
28-
visibility: 'simplified'
29-
},
28+
visibility: 'off'
29+
}
30+
]
31+
},
32+
{
33+
featureType: 'transit.station',
34+
elementType: 'all',
35+
stylers: [
3036
{
31-
color: '#fcfcfc'
37+
visibility: 'off'
3238
}
3339
]
3440
},

0 commit comments

Comments
 (0)