Skip to content

Instantly share code, notes, and snippets.

View haytastan's full-sized avatar
💭
I may be slow to respond.

Hayati TASTAN, PhD in Geospatial IT haytastan

💭
I may be slow to respond.
View GitHub Profile
@haytastan
haytastan / gist:bb91bc518b6862b8eb50897e5c71c3b9
Created December 26, 2019 09:56 — forked from ajokela/gist:1285103
UTM to Geog, Geog to UTM
<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
@haytastan
haytastan / app.js
Created September 4, 2019 12:33 — forked from tristen/app.js
Zoom Slider
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);
@haytastan
haytastan / map.js
Created September 4, 2019 12:32 — forked from tristen/map.js
class Map extends React.Component {
componentDidMount() {
this.map = new mapboxgl.Map({
container: this.mapContainer,
style: 'mapbox://styles/mapbox/streets-v9'
});
}
componentWillUnmount() {
this.map.remove();