Skip to content

Commit

Permalink
- Support PointerEvent devices like MS Edge on a touchscreen
Browse files Browse the repository at this point in the history
  * Polyfill PointerEvents to TouchEvents which then turn into MouseEvents in timemachine
- Fix issue with radio buttons for featured layers on MS Edge
  • Loading branch information
pdille committed Jul 26, 2018
1 parent 7742b21 commit 9cb1f58
Show file tree
Hide file tree
Showing 3 changed files with 710 additions and 7 deletions.
3 changes: 3 additions & 0 deletions examples/webgl-timemachine/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
html, body {
height: 100%;
overflow: hidden;
-ms-content-zooming: none;
-ms-touch-action: none;
touch-action: none;
}

* {
Expand Down
9 changes: 2 additions & 7 deletions examples/webgl-timemachine/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<link href="../../css/jquery.multiselect.css" rel="stylesheet" type="text/css" />
<link href="index.css" rel="stylesheet" type="text/css" />

<script src="../../js/touchpolyfill.js" type="text/javascript"></script>

<script src="../../timemachine/js/jquery/jquery.min.js" type="text/javascript"></script>
<script src="../../timemachine/js/jquery/jquery-ui.custom.min.js" type="text/javascript"></script>
<script src="../../timemachine/js/jquery/plugins/mouse/jquery.mousewheel.min.js" type="text/javascript"></script>
Expand Down Expand Up @@ -3416,13 +3418,6 @@
}
});

$("input:radio[name=base-layers]").on("change", function(e) {
// If we have a featured layers section, set listener to mirror checked behavior for base layer radio buttons
if (featuredTheme) {
$("#layers-list-featured #" + e.currentTarget.id).prop("checked", $("#layers-list #" + e.currentTarget.id).prop("checked"));
}
});

// Initially set activeLayersWithTimeline to 1 if we first load with landsat enabled.
// Also set the custom scale.
if (visibleBaseMapLayer == "landsat") {
Expand Down
Loading

0 comments on commit 9cb1f58

Please sign in to comment.