File: geojson-sample.js

package info (click to toggle)
leaflet-markercluster 1.4.1~dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,544 kB
  • sloc: makefile: 35; sh: 10
file content (53 lines) | stat: -rw-r--r-- 1,018 bytes parent folder | download | duplicates (5)
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
var geojsonSample = {
	"type": "FeatureCollection",
	"features": [
		{
			"type": "Feature",
			"geometry": {
				"type": "Point",
				"coordinates": [102.0, 0.5]
			},
			"properties": {
				"prop0": "value0",
				"color": "blue"
			}
		},

		{
			"type": "Feature",
			"geometry": {
				"type": "LineString",
				"coordinates": [[102.0, 0.0], [103.0, 1.0], [104.0, 0.0], [105.0, 1.0]]
			},
			"properties": {
				"color": "red",
				"prop1": 0.0
			}
		},

		{
			"type": "Feature",
			"geometry": {
				"type": "Polygon",
				"coordinates": [[[100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0]]]
			},
			"properties": {
				"color": "green",
				"prop1": {
					"this": "that"
				}
			}
		},

		{
			"type": "Feature",
			"geometry": {
				"type": "MultiPolygon",
				"coordinates": [[[[100.0, 1.5], [100.5, 1.5], [100.5, 2.0], [100.0, 2.0], [100.0, 1.5]]], [[[100.5, 2.0], [100.5, 2.5], [101.0, 2.5], [101.0, 2.0], [100.5, 2.0]]]]
			},
			"properties": {
				"color": "purple"
			}
		}
	]
};