forked from SuperMap/iClient-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmock_ol.js
More file actions
34 lines (33 loc) · 1.12 KB
/
mock_ol.js
File metadata and controls
34 lines (33 loc) · 1.12 KB
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
import Style from 'ol/style/Style';
import Fill from 'ol/style/Fill';
import Stroke from 'ol/style/Stroke';
import Icon from 'ol/style/Icon';
import Text from 'ol/style/Text';
import Circle from 'ol/style/Circle';
import Point from 'ol/geom/Point';
import { fromLonLat } from 'ol/proj';
import { createXYZ } from 'ol/tilegrid';
import Map from 'ol/Map';
import GeoJSON from 'ol/format/GeoJSON';
import MVT from 'ol/format/MVT';
import { unByKey } from 'ol/Observable';
import TileLayer from 'ol/layer/Tile';
import VectorLayer from 'ol/layer/Vector';
import VectorTileLayer from 'ol/layer/VectorTile';
import TileJSON from 'ol/source/TileJSON';
import VectorSource from 'ol/source/Vector';
import VectorTileSource from 'ol/source/VectorTile';
import XYZ from 'ol/source/XYZ';
const ol = {
style: { Style, Fill, Stroke, Icon, Text, Circle },
geom: { Point },
proj: { fromLonLat },
tilegrid: { createXYZ },
format: { GeoJSON, MVT },
Map,
Observable: { unByKey },
layer: { TileLayer, VectorLayer, VectorTileLayer },
source: { TileJSON, VectorSource, VectorTileSource, XYZ }
};
window.ol = ol;
export default ol;