Skip to content

Instantly share code, notes, and snippets.

@hpfast
hpfast / aardbevingen_NL.geojson
Last active February 8, 2018 10:05
Leaflet with a GeoJSON layer in RD
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>A basic map with MapboxGL.js</title>
<!--add MapboxGLjs CSS-->
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.44.0/mapbox-gl.css' rel='stylesheet' />
<!--our own style rules-->
<!DOCTYPE html>
<html lang="nl">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>VISdata - PDOK</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="img/pdok_favicon.ico">
<link rel="stylesheet" href="css/mapbox-gl.css">
<link rel="stylesheet" href="css/main.css">
@hpfast
hpfast / index.html
Last active February 6, 2018 16:19
simple mapbox-gl viewer
<!DOCTYPE html>
<html lang="nl">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>VISdata - PDOK</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="img/pdok_favicon.ico">
<link rel="stylesheet" href="css/mapbox-gl.css">
<link rel="stylesheet" href="css/main.css">
@hpfast
hpfast / index.html
Created February 6, 2018 15:53
Leaflet with a WMS overlay
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>A basic map with Leaflet</title>
<!--add Leaflet CSS-->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.1/dist/leaflet.css"
integrity="sha512-Rksm5RenBEKSKFjgI3a41vrjkw4EVPlJ3+OiI65vTjIdo9brlAacEuKOiQ5OFh7cOI1bkDwLqdLw3Zg0cRJAAQ=="
crossorigin=""/>
@hpfast
hpfast / index.html
Created February 6, 2018 15:51
leaflet basemap example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>A basic map with Leaflet</title>
<!--add Leaflet CSS-->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.1/dist/leaflet.css"
integrity="sha512-Rksm5RenBEKSKFjgI3a41vrjkw4EVPlJ3+OiI65vTjIdo9brlAacEuKOiQ5OFh7cOI1bkDwLqdLw3Zg0cRJAAQ=="
crossorigin=""/>
#container{
margin-top:20px;
width:100%;
height:30px;
border: 1px solid #ccc;
box-shadow: -1px 1px 1px 1px #ccc;
overflow:hidden;
}
#container:hover{
cursor:pointer
#container{
margin-top:20px;
width:170px;
height:30px;
border: 1px solid #ccc;
box-shadow: -1px 1px 1px 1px #ccc;
overflow:hidden;
}
#container:hover{
cursor:pointer
#container{
margin-top:20px;
width:200px;
border:1px solid white;
}
.half{
width:50%;
border:1px solid white;
float:left;
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<ul id="buh"></ul>
</body>