Skip to content

Instantly share code, notes, and snippets.

@cieloazul310
Last active March 3, 2017 22:28
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 cieloazul310/7c23233142e6eaac1f7e389e412d3de8 to your computer and use it in GitHub Desktop.
Save cieloazul310/7c23233142e6eaac1f7e389e412d3de8 to your computer and use it in GitHub Desktop.
new gist
license: gpl-3.0

post gist via Atom

大人になっても僕らはAtomの子供さ

<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="https://openlayers.org/en/v4.0.1/css/ol.css" type="text/css">
<style>
.map {
height: 500px;
width: 100%;
}
</style>
<div class="map" id="map"></div>
<script src="https://openlayers.org/en/v4.0.1/build/ol.js" type="text/javascript"></script>
<script>
var map = new ol.Map({
target: "map",
layers: [
new ol.layer.Tile({
source: new ol.source.OSM()
})
],
view: new ol.View({
center: ol.proj.fromLonLat([140,37]),
zoom: 10
})
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment