-
Notifications
You must be signed in to change notification settings - Fork 28
/
index.html
executable file
·90 lines (80 loc) · 3.64 KB
/
index.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
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
86
87
88
89
90
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="https://www.w3.org/1999/xhtml">
<head>
<title>Leaflet JSON Layer</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link rel="stylesheet" href="examples/style.css" />
<link rel="stylesheet" href="//unpkg.com/[email protected]/gh-fork-ribbon.css"></head>
<body>
<h2> Leaflet JSON Layer</a></h2>
<p>
<big>Simple way for transform any JSON data source in a Dynamic Leaflet Layer!</big>
<iframe src="https://ghbtns.com/github-btn.html?user=stefanocudini&repo=leaflet-layerJSON&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="104px" height="20px"></iframe>
<br />
Other useful stuff for <a href="https://opengeo.tech/maps/">Web Mapping...</a>
</p>
<div id="content">
<h4>Features</h4>
<ul id="ff">
<li>Load <b>JSON</b> data via <b>AJAX,JSONP</b> or custom function</li>
<li>Request data by <b>bounding box</b></li>
<li><b>Caching System</b> for reduce Ajax/Jsonp requests</li>
<li>Pre-filter JSON data from <b>third-party jsonp services</b></li>
<li><b>Events</b>: dataloading, dataloaded</li>
<li><b>Customize popup</b> and icon marker</li>
<li>Customize marker builder</li>
<li>Using exists layer</li>
</ul>
<h4>Options</h4>
<ul>
<li>min shift before request data</li>
<li>new requests only if comes out of bounds</li>
<li>precision digit for coordinates</li>
<li>and much more...</li>
</ul>
</div>
<div id="refs">
<h4>Examples</h4>
<ul>
<li><a href="examples/simple.html">Simple Ajax</a></li>
<li><a href="examples/jquery.html">jQuery Ajax</a></li>
<li><a href="examples/jsonp.html">JSONP OSM Nominatim</a></li>
<li><a href="examples/calldata.html">Data by Callback</a></li>
<li><a href="examples/overpass.html">Overpass API</a></li>
<li><a href="examples/fixed-remote-data.html">Remote Fixed Data</a></li>
<li><a href="examples/polygons.html">Paths and Polygons</a></li>
</ul>
<h4>Repositories</h4>
<a target="_blank" href="https://github.com/stefanocudini/leaflet-layerjson">Github.com</a>
<br />
<a target="_blank" href="https://bitbucket.org/stefanocudini/leaflet-layerjson">Bitbucket.org</a>
<br />
<a target="_blank" href="https://npmjs.org/package/leaflet-layerjson">Node Packaged Module</a>
<br />
<a target="_blank" href="https://atmosphere.meteor.com/package/leaflet-layerjson">Atmosphere Meteor JS</a>
<br />
<h4>Download</h4>
<ul>
<li><a href="https://github.com/stefanocudini/leaflet-layerjson/archive/master.zip">Dev Pack (.zip)</a></li>
<li><a href="dist/leaflet-layerjson.src.js">Source Code (.js)</a></li>
<li><a href="dist/leaflet-layerjson.min.js">Compressed (.min.js)</a></li>
</ul>
</div>
<div style="clear:both">
<br />
<h4>Usage</h4>
<pre>
L.layerJSON({url: "search.php?lat1={lat1}&lat2={lat2}&lon1={lon1}&lon2={lon2}" }).addTo(map);
</pre>
</div>
<div style="clear:both;font-size:.85em;margin-bottom:1em">
<br />
<b>For questions and bugs</b> I recommend you to <a href="https://github.com/stefanocudini/leaflet-list-markers/issues">create New Issue</a> on Github repository.</strong><br />
Or to obtain a fast response consult <a href="https://groups.google.com/forum/?hl=it&fromgroups=#!forum/leaflet-js">Official Leaflet community forum</a>.<br />
<br />
This is a micro discussion area for methods of implementation.<br />
</div>
<a href="https://github.com/stefanocudini/leaflet-layerJSON" class="github-fork-ribbon" data-ribbon="Fork me on GitHub">Github</a>
</body>
</html>