Skip to content
This repository has been archived by the owner on Aug 17, 2020. It is now read-only.

Commit

Permalink
fix: white overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
severo committed Apr 12, 2019
1 parent 15789a8 commit 41cda5a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/lib/main.en.js
Original file line number Diff line number Diff line change
Expand Up @@ -25305,7 +25305,7 @@
function createOverlay(parent, dispatcher, data, canvas, dataWidth) {
// The overlay is nearly 100% transparent. It's used to capture the mouse and
// touch events
var overlay = parent.append('rect').attr('x', 0).attr('y', 0).attr('width', '100%').attr('height', '100%').attr('fill-opacity', '0.01');
var overlay = parent.append('rect').attr('x', 0).attr('y', 0).attr('width', '100%').attr('height', '100%').attr('fill', 'white').attr('fill-opacity', '0.01');
overlay.on('mouseout', function (ft, element) {
// invoke callbacks
dispatcher.call('mun-mouseout');
Expand Down
2 changes: 1 addition & 1 deletion docs/lib/main.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -25305,7 +25305,7 @@
function createOverlay(parent, dispatcher, data, canvas, dataWidth) {
// The overlay is nearly 100% transparent. It's used to capture the mouse and
// touch events
var overlay = parent.append('rect').attr('x', 0).attr('y', 0).attr('width', '100%').attr('height', '100%').attr('fill-opacity', '0.01');
var overlay = parent.append('rect').attr('x', 0).attr('y', 0).attr('width', '100%').attr('height', '100%').attr('fill', 'white').attr('fill-opacity', '0.01');
overlay.on('mouseout', function (ft, element) {
// invoke callbacks
dispatcher.call('mun-mouseout');
Expand Down
2 changes: 1 addition & 1 deletion docs/lib/main.pt.js
Original file line number Diff line number Diff line change
Expand Up @@ -25305,7 +25305,7 @@
function createOverlay(parent, dispatcher, data, canvas, dataWidth) {
// The overlay is nearly 100% transparent. It's used to capture the mouse and
// touch events
var overlay = parent.append('rect').attr('x', 0).attr('y', 0).attr('width', '100%').attr('height', '100%').attr('fill-opacity', '0.01');
var overlay = parent.append('rect').attr('x', 0).attr('y', 0).attr('width', '100%').attr('height', '100%').attr('fill', 'white').attr('fill-opacity', '0.01');
overlay.on('mouseout', function (ft, element) {
// invoke callbacks
dispatcher.call('mun-mouseout');
Expand Down
1 change: 1 addition & 0 deletions src/_javascript/map/layers/overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export function createOverlay(parent, dispatcher, data, canvas, dataWidth) {
.attr('y', 0)
.attr('width', '100%')
.attr('height', '100%')
.attr('fill', 'white')
.attr('fill-opacity', '0.01');

overlay.on('mouseout', (ft, element) => {
Expand Down

0 comments on commit 41cda5a

Please sign in to comment.