planit
Version:
Interactive markers on an image or blank canvas
50 lines (44 loc) • 1.06 kB
HTML
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Planit / Basic Example</title>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="../planit.css">
<script src="js/jquery-1.11.2.min.js"></script>
<script src="../planit.js"></script>
<script src="js/modernizr-2.8.3.min.js"></script>
<style>
#planit {
width: 90%;
}
</style>
</head>
<body>
<div id="planit"></div>
<script>
p = planit.new({
markers: [
{
coords: [12, 45],
color: '#ccc'
},
{
coords: [45, 62],
color: '#ccc'
},
{
coords: [64.21, 72.55],
color: '#ccc'
},
{
coords: [5.44, 91],
draggable: true
}
]
});
</script>
</body>
</html>