forked from yourcelf/olwidget
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinfo_cluster_simple.html
32 lines (31 loc) · 1.39 KB
/
info_cluster_simple.html
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- olwidget includes -->
<script type='text/javascript' src='http://openlayers.org/api/2.8/OpenLayers.js'></script>
<script type='text/javascript' src='../../js/olwidget.js'></script>
<link rel="stylesheet" type="text/css" media="all" href="../../css/olwidget.css" />
<title>Simple olwidget Info Example</title>
<style type='text/css'>
textarea {
width: 300px;
height: 200px;
}
</style>
</head>
<body>
<h1>Simple Example</h1>
<p>A simple example using the default point geometry. Select the
"draw" tool, and you can draw and move a point.</p>
<div id='map'></div>
<script type='text/javascript'>//<![CDATA[
new olwidget.InfoMap('map', [
["POINT(0 0)", "<p>Point Zero!!</p>"],
["POINT(0 0)", "<p>Point One!</p>"]
],
{ cluster: true, layers: ['wms.blank'] });
//]]></script>
<a href='#' onclick='document.getElementById("myTextarea").style.display="block";'>show textarea</a>
</body>
</html>