Skip to content

Instantly share code, notes, and snippets.

@jimyhuang
Created April 25, 2015 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimyhuang/93a67b771006b00263bc to your computer and use it in GitHub Desktop.
Save jimyhuang/93a67b771006b00263bc to your computer and use it in GitHub Desktop.
tile usage sample | Twlandsat - 賽豬公上太空
<!doctype html>
<html lang="zh-TW">
<head>
<meta charset="UTF-8">
<title>tile usage sample | Twlandsat - 賽豬公上太空 </title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
<style>
#map {
height: 540px;
width: 800px;
}
</style>
</head>
<body>
<div id="map"></div>
<script>
var map = L.map('map').setView([23.256172010924537,120.43350219726562], 10);
L.tileLayer('http://l3.jimmyhub.net/processed/LC81180442014292LGN00/tiles-rgb/{z}/{x}/{y}.png', {
tms: true, // tile
attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',
maxZoom: 18
}).addTo(map);
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment