This repository has been archived by the owner on Feb 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathouterspatial.js
executable file
·80 lines (78 loc) · 2.92 KB
/
outerspatial.js
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
/* global L */
/* jshint camelcase: false */
var config = require('./package.json');
var devBasePath = config.devBasePath;
var version = config.version;
window.L.Icon.Default.imagePath = (devBasePath || 'https://cdn.outerspatial.com/libs/outerspatial-map-library/' + version) + '/images';
L.outerspatial = module.exports = {
VERSION: version,
// Preserve order of controls because it affects the display hierarchy.
control: {
switcher: require('./src/control/switcher'),
legend: require('./src/control/legend'),
geocoder: require('./src/control/geocoder'),
filter: require('./src/control/filter'),
download: require('./src/control/download'),
home: require('./src/control/home'),
smallzoom: require('./src/control/smallzoom'),
locate: require('./src/control/locate'),
measure: require('./src/control/measure'),
edit: require('./src/control/edit'),
fullscreen: require('./src/control/fullscreen'),
hash: require('./src/control/hash'),
infobox: require('./src/control/infobox'),
overview: require('./src/control/overview'),
print: require('./src/control/print'),
scale: require('./src/control/scale'),
share: require('./src/control/share'),
zoomdisplay: require('./src/control/zoomdisplay')
},
icon: {
maki: require('./src/icon/maki'),
outerspatialsymbollibrary: require('./src/icon/outerspatialsymbollibrary')
},
layer: {
_cluster: require('./src/layer/cluster'),
arcgisserver: {
dynamic: require('./src/layer/arcgisserver/dynamic'),
tiled: require('./src/layer/arcgisserver/tiled')
},
bing: require('./src/layer/bing'),
cartodb: require('./src/layer/cartodb'),
csv: require('./src/layer/csv'),
geojson: require('./src/layer/geojson'),
github: require('./src/layer/github'),
kml: require('./src/layer/kml'),
mapbox: {
styled: require('./src/layer/mapbox/styled'),
tiled: require('./src/layer/mapbox/tiled')
},
spot: require('./src/layer/spot'),
tiled: require('./src/layer/tiled'),
wms: require('./src/layer/wms'),
zoomify: require('./src/layer/zoomify')
},
map: require('./src/map'),
module: {
directions: require('./src/module/directions')
},
popup: require('./src/popup'),
preset: {
baselayers: require('./src/preset/baselayers.json'),
colors: require('./src/preset/colors.json'),
maki: require('./node_modules/maki/_includes/maki.json'),
outerspatial: require('./src/preset/outerspatial'),
outerspatialsymbollibrary: require('./node_modules/outerspatial-symbol-library/www/outerspatial-builder/outerspatial-symbol-library.json'),
overlays: require('./src/preset/overlays.json'),
places: {
pois: require('./src/preset/places/pois')
}
},
tooltip: require('./src/tooltip'),
util: {
_: require('./src/util/util'),
geocode: require('./src/util/geocode'),
route: require('./src/util/route'),
topojson: require('./src/util/topojson')
}
};