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
<html> | |
<head> | |
<title>Convert Between Geographic and UTM Coordinates</title> | |
<script type="text/JavaScript" src="../jsDraw2D.js"></script> | |
<link rel="stylesheet" type="text/css" href="../main0.css"> | |
<script language=javascript> | |
function Declarations(){ | |
//Symbols as used in USGS PP 1395: Map Projections - A Working Manual |
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
var zoomSlider = document.getElementById('zoom'); | |
var zoomValue = document.getElementById('zoomvalue'); | |
var map, targetZoom; | |
var initMap = function() { | |
var template = 'http://{S}tile.openstreetmap.org/{Z}/{X}/{Y}.png'; | |
var subdomains = ['', 'a.', 'b.', 'c.']; | |
var provider = new MM.TemplatedLayer(template, subdomains); | |
map = new MM.Map('map', provider, null); |
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
class Map extends React.Component { | |
componentDidMount() { | |
this.map = new mapboxgl.Map({ | |
container: this.mapContainer, | |
style: 'mapbox://styles/mapbox/streets-v9' | |
}); | |
} | |
componentWillUnmount() { | |
this.map.remove(); |