This repository has been archived by the owner on Nov 21, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: error messaging, param to disable mousezoom (#15)
* Feature: display error message on failures So things don't look "JS is dead" on failure. * Improve documentation a bit * Add disableZoomScroll option
- Loading branch information
1 parent
7b537cb
commit 4bf8034
Showing
3 changed files
with
61 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,19 +56,19 @@ | |
- disable the legend: live-data-map.html?hideLegend=true | ||
- description block: live-data-map.html?description=true | ||
You can throttle this for older devices with "?slimClient=true", | ||
this will reduce the update frequency and trim some display options. | ||
You can set an initial zoom level, lat, long: | ||
You can set some other optional paramaters: | ||
- zoomLevel=2 (2 is default) | ||
- disableZoomScroll=false (false is default) | ||
- lat=30 (30 is default) | ||
- lon=-10.5 (-10.5 is default) | ||
- slimClient=false (reduces performance for older devices by lowering update frequency and trim some display options; false is default) | ||
- hideErrorMessages=false (false is default) | ||
- debug=false (false is default) | ||
The map and its asset URLs are subject to change, so please do not directly code the map into your web page. | ||
Updates: | ||
2017-01-23: Various timing optimisations and the ability to request a legend display | ||
2016-12-14: Initial go-live | ||
- See https://github.com/ebiwd/EMBL-EBI-Live-data-map/releases | ||
Credits: | ||
- Philip Lewis: Backend server log queries, first implementation (http://wwwdev.ebi.ac.uk/ebiwebtrafficmap/kmlvector.html) | ||
- Ken Hawkins: Visual polish, various log optimisations, and MapBox-based implementation | ||
|
@@ -94,6 +94,10 @@ | |
<!-- <script src="https://cdn.ravenjs.com/3.17.0/raven.min.js" crossorigin="anonymous"></script> --> | ||
<!-- <script>Raven.config('https://[email protected]/204881').install();</script> --> | ||
|
||
<div class="modal modal--error"> | ||
<p class=""><strong>Retrying...</strong> Something went wrong while to fetch map data. Attempting to reconnect.</p> | ||
</div> | ||
|
||
<div id="map"></div> | ||
|
||
<div id="legend" class="legend modal"></div> | ||
|