/usr/share/doc/libjs-jquery-geo-doc/html/examples/label.html is in libjs-jquery-geo-doc 1.0~b1+ds1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 | <!DOCTYPE html>
<html>
<head>
<title>label examples</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="description" content="An example of drawing shapes with labels">
<meta name="author" content="Ryan Westphal">
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/themes/blitzer/jquery-ui.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<style type="text/css">
#map
{
position: fixed;
left: 0;
top: 0;
right: 0;
bottom: 0;
}
</style>
</head>
<body>
<div>
<div id="map">
</div>
<div class="info">
<div class="links">
<a href="../" class="docLink">< docs</a>
<a href="http://jsfiddle.net/ryanttb/2TAzc/embedded/" class="fiddleLink not-mobile"><img src="img/jsfiddle.png" alt="" /> jsFiddle ></a>
</div>
<h1>label</h1>
<p class="not-mobile">This example builds on the drawing example by appending a label with shapes. Enter label text (HTML is ok), choose a tool below, and start labelling!</p>
<input type="text" name="label" value="a label" autofocus />
<div id="modes">
<input type="radio" id="drawPoint" name="mode" value="drawPoint" checked="checked" /><label for="drawPoint">point</label>
<input type="radio" id="drawLineString" name="mode" value="drawLineString" /><label for="drawLineString">line</label>
<input type="radio" id="drawPolygon" name="mode" value="drawPolygon" /><label for="drawPolygon">polygon</label>
</div>
</div>
</div>
<script src="/usr/share/javascript/jquery/jquery.min.js"></script>
<script src="/usr/share/javascript/jquery-ui/jquery-ui.min.js"></script>
<script src="/usr/share/javascript/excanvas/excanvas.min.js"></script>
<script src="/usr/share/javascript/jsrender/jsrender.min.js"></script>
<script src="/usr/share/javascript/jquery-mousewheel/jquery.mousewheel.min.js"></script>
<script src="/usr/share/javascript/jquery-ui/ui/jquery.ui.widget.min.js"></script>
<script src="/usr/share/javascript/jquery-geo/jquery.geo.full.min.js"></script>
<script>
$(function () {
// create a map, setting mode to drawPoint initially
var map = $("#map").geomap({
center: [-71.0595678, 42.3604823],
zoom: 8,
mode: "drawPoint",
shape: function (e, geo) {
// the shape event triggers when a user draws a shape
// the geo object is a simple GeoJSON object: Point, LineString or Polygon
// we can append it directly to the map
// grab the text of the label input and send it as a label for this shape
map.geomap("append", geo, $("input[name='label']").val());
}
});
// jQuery UI for pretty buttons
$("#modes").buttonset();
$("#modes input").click(function () {
// set the map's mode option based on value of the input clicked
// this will change the map's mode to drawPoint, drawLineString or drawPolygon
map.geomap("option", "mode", $(this).val());
});
});
</script>
<script>
var _gaq = [['_setAccount', 'UA-26084853-1'], ['_trackPageview']];
(function (d, t) {
var g = d.createElement(t), s = d.getElementsByTagName(t)[0]; g.async = 1;
g.src = ('https:' == location.protocol ? '//ssl' : '//www') + '.google-analytics.com/ga.js';
s.parentNode.insertBefore(g, s);
} (document, 'script'));
</script>
</body>
</html>
|