Skip to content

Instantly share code, notes, and snippets.

@t-artikov
Last active February 12, 2021 04:23
Show Gist options
  • Save t-artikov/e15049c7fca77fecc108c76df61c4fa9 to your computer and use it in GitHub Desktop.
Save t-artikov/e15049c7fca77fecc108c76df61c4fa9 to your computer and use it in GitHub Desktop.
mapgl support test
<!DOCTYPE html>
<html>
<body>
<p id="r1"/>
<p id="r2"/>
<script src="https://mapgl.2gis.com/api/js/v1"></script>
<script>
const r1 = mapgl.notSupportedReason({ failIfMajorPerformanceCaveat: false });
const r2 = mapgl.notSupportedReason({ failIfMajorPerformanceCaveat: true });
document.getElementById("r1").innerHTML = "notSupportedReason: " + r1;
document.getElementById("r2").innerHTML = "notSupportedReason(failIfMajorPerformanceCaveat): " + r2;
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment