@abi-software/flatmapvuer 0.5.7 → 0.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/CHANGELOG.md +399 -399
  2. package/LICENSE +201 -201
  3. package/README.md +105 -105
  4. package/babel.config.js +14 -14
  5. package/dist/flatmapvuer.common.js +139 -98
  6. package/dist/flatmapvuer.common.js.map +1 -1
  7. package/dist/flatmapvuer.css +1 -1
  8. package/dist/flatmapvuer.umd.js +139 -98
  9. package/dist/flatmapvuer.umd.js.map +1 -1
  10. package/dist/flatmapvuer.umd.min.js +2 -2
  11. package/dist/flatmapvuer.umd.min.js.map +1 -1
  12. package/package-lock.json +14399 -14399
  13. package/package.json +78 -78
  14. package/public/index.html +17 -17
  15. package/src/App.vue +226 -226
  16. package/src/assets/_variables.scss +43 -43
  17. package/src/assets/styles.scss +7 -7
  18. package/src/components/EventBus.js +2 -2
  19. package/src/components/ExternalResourceCard.vue +98 -98
  20. package/src/components/FlatmapVuer.vue +1841 -1841
  21. package/src/components/MultiFlatmapVuer.vue +529 -529
  22. package/src/components/SelectionsGroup.vue +249 -249
  23. package/src/components/Tooltip.vue +447 -417
  24. package/src/components/TreeControls.vue +231 -231
  25. package/src/components/index.js +9 -9
  26. package/src/components/legends/DynamicLegends.vue +112 -112
  27. package/src/components/legends/SvgLegends.vue +66 -66
  28. package/src/icons/fonts/mapicon-species.eot +0 -0
  29. package/src/icons/fonts/mapicon-species.svg +14 -14
  30. package/src/icons/fonts/mapicon-species.ttf +0 -0
  31. package/src/icons/fonts/mapicon-species.woff +0 -0
  32. package/src/icons/mapicon-species-style.css +42 -42
  33. package/src/legends/legend.svg +25 -25
  34. package/src/main.js +8 -8
  35. package/src/nerve-map.js +99 -0
  36. package/src/services/flatmapQueries.js +415 -415
  37. package/vue.config.js +31 -31
package/package.json CHANGED
@@ -1,78 +1,78 @@
1
- {
2
- "name": "@abi-software/flatmapvuer",
3
- "version": "0.5.7",
4
- "license": "Apache-2.0",
5
- "main": "./dist/flatmapvuer.common.js",
6
- "files": [
7
- "dist/*",
8
- "src/*",
9
- "public/*",
10
- "*.json",
11
- "*.js"
12
- ],
13
- "repository": {
14
- "type": "git",
15
- "url": "https://github.com/ABI-Software/flatmapvuer.git"
16
- },
17
- "scripts": {
18
- "start": "vue-cli-service serve",
19
- "serve": "vue-cli-service serve --port 8082",
20
- "build": "vue-cli-service build --dest test_html --mode staging",
21
- "build-bundle": "vue-cli-service build --target lib --name flatmapvuer ./src/components/index.js",
22
- "lint": "vue-cli-service lint",
23
- "release:beta": "npm version prerelease --preid=beta; npm publish --tag beta",
24
- "release:minor": "npm version minor; npm publish",
25
- "release:patch": "npm version patch; npm publish",
26
- "changelog": "auto-changelog -p --output CHANGELOG.md --template keepachangelog",
27
- "version": "npm run build-bundle;npm run changelog; git add CHANGELOG.md"
28
- },
29
- "dependencies": {
30
- "@abi-software/flatmap-viewer": "^2.4.2-b.3",
31
- "@abi-software/svg-sprite": "^0.3.0",
32
- "core-js": "^3.3.2",
33
- "css-element-queries": "^1.2.2",
34
- "current-script-polyfill": "^1.0.0",
35
- "element-ui": "^2.13.0",
36
- "file-loader": "^5.0.2",
37
- "lodash": "^4.17.21",
38
- "vue": "^2.6.10"
39
- },
40
- "devDependencies": {
41
- "@vue/cli-plugin-babel": "^4.0.0",
42
- "@vue/cli-plugin-eslint": "^4.0.0",
43
- "@vue/cli-service": "^4.5.13",
44
- "auto-changelog": "^2.4.0",
45
- "babel-eslint": "^10.0.3",
46
- "babel-plugin-component": "^1.1.1",
47
- "base64-inline-loader": "^2.0.1",
48
- "eslint": "^5.16.0",
49
- "eslint-plugin-vue": "^5.0.0",
50
- "node-sass": "^4.14.1",
51
- "sass-loader": "^8.0.2",
52
- "vue-template-compiler": "^2.6.10",
53
- "webpack-node-externals": "^2.5.2"
54
- },
55
- "eslintConfig": {
56
- "root": true,
57
- "env": {
58
- "node": true
59
- },
60
- "extends": [
61
- "plugin:vue/essential",
62
- "eslint:recommended"
63
- ],
64
- "rules": {},
65
- "parserOptions": {
66
- "parser": "babel-eslint"
67
- }
68
- },
69
- "postcss": {
70
- "plugins": {
71
- "autoprefixer": {}
72
- }
73
- },
74
- "browserslist": [
75
- "> 1%",
76
- "last 2 versions"
77
- ]
78
- }
1
+ {
2
+ "name": "@abi-software/flatmapvuer",
3
+ "version": "0.5.8",
4
+ "license": "Apache-2.0",
5
+ "main": "./dist/flatmapvuer.common.js",
6
+ "files": [
7
+ "dist/*",
8
+ "src/*",
9
+ "public/*",
10
+ "*.json",
11
+ "*.js"
12
+ ],
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/ABI-Software/flatmapvuer.git"
16
+ },
17
+ "scripts": {
18
+ "start": "vue-cli-service serve",
19
+ "serve": "vue-cli-service serve --port 8082",
20
+ "build": "vue-cli-service build --dest test_html --mode staging",
21
+ "build-bundle": "vue-cli-service build --target lib --name flatmapvuer ./src/components/index.js",
22
+ "lint": "vue-cli-service lint",
23
+ "release:beta": "npm version prerelease --preid=beta; npm publish --tag beta",
24
+ "release:minor": "npm version minor; npm publish",
25
+ "release:patch": "npm version patch; npm publish",
26
+ "changelog": "auto-changelog -p --output CHANGELOG.md --template keepachangelog",
27
+ "version": "npm run build-bundle;npm run changelog; git add CHANGELOG.md"
28
+ },
29
+ "dependencies": {
30
+ "@abi-software/flatmap-viewer": "^2.4.2-b.3",
31
+ "@abi-software/svg-sprite": "^0.3.0",
32
+ "core-js": "^3.3.2",
33
+ "css-element-queries": "^1.2.2",
34
+ "current-script-polyfill": "^1.0.0",
35
+ "element-ui": "^2.13.0",
36
+ "file-loader": "^5.0.2",
37
+ "lodash": "^4.17.21",
38
+ "vue": "^2.6.10"
39
+ },
40
+ "devDependencies": {
41
+ "@vue/cli-plugin-babel": "^4.0.0",
42
+ "@vue/cli-plugin-eslint": "^4.0.0",
43
+ "@vue/cli-service": "^4.5.13",
44
+ "auto-changelog": "^2.4.0",
45
+ "babel-eslint": "^10.0.3",
46
+ "babel-plugin-component": "^1.1.1",
47
+ "base64-inline-loader": "^2.0.1",
48
+ "eslint": "^5.16.0",
49
+ "eslint-plugin-vue": "^5.0.0",
50
+ "node-sass": "^4.14.1",
51
+ "sass-loader": "^8.0.2",
52
+ "vue-template-compiler": "^2.6.10",
53
+ "webpack-node-externals": "^2.5.2"
54
+ },
55
+ "eslintConfig": {
56
+ "root": true,
57
+ "env": {
58
+ "node": true
59
+ },
60
+ "extends": [
61
+ "plugin:vue/essential",
62
+ "eslint:recommended"
63
+ ],
64
+ "rules": {},
65
+ "parserOptions": {
66
+ "parser": "babel-eslint"
67
+ }
68
+ },
69
+ "postcss": {
70
+ "plugins": {
71
+ "autoprefixer": {}
72
+ }
73
+ },
74
+ "browserslist": [
75
+ "> 1%",
76
+ "last 2 versions"
77
+ ]
78
+ }
package/public/index.html CHANGED
@@ -1,17 +1,17 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
- <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
- <link rel="icon" href="<%= BASE_URL %>favicon.ico">
8
- <title>flatmapvuer</title>
9
- </head>
10
- <body>
11
- <noscript>
12
- <strong>We're sorry but scaffoldvuer doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
13
- </noscript>
14
- <div id="app"></div>
15
- <!-- built files will be auto injected -->
16
- </body>
17
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+ <meta name="viewport" content="width=device-width,initial-scale=1.0">
7
+ <link rel="icon" href="<%= BASE_URL %>favicon.ico">
8
+ <title>flatmapvuer</title>
9
+ </head>
10
+ <body>
11
+ <noscript>
12
+ <strong>We're sorry but scaffoldvuer doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
13
+ </noscript>
14
+ <div id="app"></div>
15
+ <!-- built files will be auto injected -->
16
+ </body>
17
+ </html>
package/src/App.vue CHANGED
@@ -1,226 +1,226 @@
1
- <template>
2
- <div id="app">
3
- <el-popover
4
- placement="bottom"
5
- trigger="click"
6
- width=500
7
- class="popover"
8
- :appendToBody=false
9
- >
10
- <div class="options-container">
11
- <el-row :gutter="20">
12
- <el-button @click="helpMode = !helpMode" size="mini">Help Mode</el-button>
13
- <el-button @click="saveSettings()" size="mini">Save Settings</el-button>
14
- <el-button :disabled="mapSettings.length === 0" @click="restoreSettings()" size="mini">Restore Settings</el-button>
15
- <el-autocomplete class="search-box" placeholder="Search"
16
- v-model="searchText"
17
- :fetch-suggestions="fetchSuggestions"
18
- @keyup.enter.native="search"
19
- @select="search"
20
- popper-class="autocomplete-popper">
21
- </el-autocomplete>
22
- </el-row>
23
- </div>
24
- <el-button class="options-button" icon="el-icon-setting" slot="reference">Options</el-button>
25
- </el-popover>
26
-
27
- <MultiFlatmapVuer ref="multi" :availableSpecies="availableSpecies"
28
- @resource-selected="FlatmapSelected" :minZoom="minZoom"
29
- @pan-zoom-callback="panZoomcallback" @open-map="openMap"
30
- @ready="FlatmapReady" :featureInfo="featureInfo" :searchable="searchable"
31
- :layerControl="layerControl"
32
- :initial="initial" :pathControls="pathControls" :helpMode="helpMode"
33
- :displayMinimap="true" :enableOpenMapUI="true" :flatmapAPI="flatmapAPI"/>
34
- </div>
35
- </template>
36
-
37
- <script>
38
- /* eslint-disable no-alert, no-console */
39
- import Vue from "vue";
40
- import MultiFlatmapVuer from './components/MultiFlatmapVuer.vue'
41
- import {
42
- Autocomplete,
43
- Button,
44
- Col,
45
- Popover,
46
- Row,
47
- } from 'element-ui';
48
- import "./icons/mapicon-species-style.css";
49
- Vue.use(Autocomplete);
50
- Vue.use(Button);
51
- Vue.use(Col);
52
- Vue.use(Popover);
53
- Vue.use(Row);
54
-
55
- export default {
56
- name: 'app',
57
- methods: {
58
- saveSettings: function() {
59
- this.mapSettings.push(this.$refs.multi.getState());
60
- },
61
- restoreSettings: function() {
62
- if (this.mapSettings.length > 0)
63
- this.$refs.multi.setState(this.mapSettings.pop());
64
- },
65
- FlatmapSelected: function(resource) {
66
- if (resource.eventType === "click") {
67
- console.log('resource', resource);
68
- }
69
- },
70
- FlatmapReady: function(component) {
71
- console.log(component);
72
- let taxon = component.mapImp.describes;
73
- let id = component.mapImp.addMarker("UBERON:0000948");
74
- window.flatmapImp = component.mapImp;
75
- component.enablePanZoomEvents(true);
76
- //component.showPathwaysDrawer(false);
77
- console.log(taxon, id);
78
- //component.searchAndShowResult("heart");
79
- },
80
- panZoomcallback: function(payload) {
81
- this.payload = payload
82
- },
83
- openMap: function (map) {
84
- console.log(map)
85
- },
86
- fetchSuggestions: function(term, cb) {
87
- if (term === "") {
88
- cb([]);
89
- } else {
90
- const suggestions = [];
91
- const results = this.$refs.multi.getCurrentFlatmap().searchSuggestions(term);
92
- results.__featureIds.forEach(id => {
93
- const annotation = this.$refs.multi.getCurrentFlatmap().mapImp.annotation(id);
94
- if (annotation && annotation.label)
95
- suggestions.push(annotation.label);
96
- });
97
- const unique = new Set(suggestions);
98
- suggestions.length = 0;
99
- for (const item of unique) {
100
- suggestions.push({"value": "\"" + item +"\""});
101
- }
102
- cb(suggestions);
103
- }
104
- },
105
- search: function() {
106
- console.log(this.searchText)
107
- this.$refs.multi.getCurrentFlatmap().searchAndShowResult(this.searchText, true);
108
- }
109
- },
110
- data: function(){
111
- return {
112
- searchText: "",
113
- featureInfo: true,
114
- searchable: true,
115
- pathControls: true,
116
- layerControl: true,
117
- minZoom: 4,
118
- availableSpecies : {
119
- "Human Female":{taxo: "NCBITaxon:9606", biologicalSex: "PATO:0000383", iconClass:"mapicon-icon_human", displayWarning:true},
120
- "Human Male":{taxo: "NCBITaxon:9606", biologicalSex: "PATO:0000384", iconClass:"mapicon-icon_human", displayWarning:true},
121
- "Rat":{taxo: "NCBITaxon:10114", iconClass:"mapicon-icon_rat", displayWarning:true, displayLatestChanges:true},
122
- "Mouse":{taxo: "NCBITaxon:10090", iconClass:"mapicon-icon_mouse", displayWarning:true},
123
- "Kember":{taxo: "ABI:1000001", displayWarning:true},
124
- "Pig":{taxo: "NCBITaxon:9823", iconClass:"mapicon-icon_pig", displayWarning:true},
125
- "Cat":{taxo: "NCBITaxon:9685", iconClass:"mapicon-icon_cat", displayWarning:true},
126
- "Functional Connectivity": {taxo: "FunctionalConnectivity", displayWarning:true},
127
- },
128
- tooltipContent: undefined,
129
- tStyle: {
130
- top: "200px",
131
- left: "200px",
132
- position: "absolute"
133
- },
134
- displayCloseButton: false,
135
- initial: "Rat",
136
- helpMode: false,
137
- mapSettings: [],
138
- //flatmapAPI: "https://mapcore-demo.org/current/flatmap/v2/"
139
- //flatmapAPI: "https://mapcore-demo.org/devel/flatmap/v3/"
140
- //flatmapAPI: "https://mapcore-demo.org/current/flatmap/v3/"
141
- flatmapAPI: "https://mapcore-demo.org/devel/flatmap/v4/"
142
- //flatmapAPI: "https://mapcore-demo.org/fccb/flatmap/"
143
- //flatmapAPI: "https://mapcore-demo.org/staging/flatmap/v1/"
144
- // flatmapAPI: "https://mapcore-demo.org/devel/flatmap/v1/"
145
- }
146
- },
147
- components: {
148
- MultiFlatmapVuer,
149
- }
150
- }
151
- </script>
152
-
153
- <style lang="scss">
154
- @import "~element-ui/packages/theme-chalk/src/autocomplete";
155
- @import "~element-ui/packages/theme-chalk/src/button";
156
- @import "~element-ui/packages/theme-chalk/src/col";
157
- @import "~element-ui/packages/theme-chalk/src/popover";
158
- @import "~element-ui/packages/theme-chalk/src/row";
159
-
160
- #app {
161
- font-family: 'Asap', 'Avenir', Helvetica, Arial, sans-serif;
162
- -webkit-font-smoothing: antialiased;
163
- -moz-osx-font-smoothing: grayscale;
164
- text-align: center;
165
- color: #2c3e50;
166
- height:100%;
167
- width: 100%;
168
- position:absolute;
169
- }
170
-
171
- .maplibregl-ctrl-top-left .maplibregl-ctrl {
172
- margin-top:120px;
173
- }
174
-
175
- .search-box {
176
- margin-top: 2px;
177
- height:28px;
178
- ::v-deep .el-input__inner {
179
- background-color: $background;
180
- height:28px;
181
- line-height:28px;
182
- border: 1px solid rgb(144, 147, 153);
183
- border-radius: 4px;
184
- &:focus {
185
- border-color: $app-primary-color;
186
- }
187
- }
188
- }
189
-
190
- ::v-deep .autocomplete-popper {
191
- min-width:137px!important;
192
- width: auto!important;
193
- }
194
-
195
- body {
196
- margin: 0px;
197
- }
198
-
199
- .maplibregl-ctrl-top-left .maplibregl-ctrl {
200
- margin-top:120px;
201
- }
202
-
203
- .popover{
204
- top:5px;
205
- right:calc( 50% - 20px);
206
- position:absolute;
207
- z-index:1000;
208
- }
209
-
210
- .el-row {
211
- margin-bottom: 5px;
212
- &:last-child {
213
- margin-bottom: 0;
214
- }
215
- }
216
-
217
- .options-container{
218
-
219
- text-align: center;
220
- }
221
-
222
- .el-tabs__content {
223
- height:100%;
224
- }
225
-
226
- </style>
1
+ <template>
2
+ <div id="app">
3
+ <el-popover
4
+ placement="bottom"
5
+ trigger="click"
6
+ width=500
7
+ class="popover"
8
+ :appendToBody=false
9
+ >
10
+ <div class="options-container">
11
+ <el-row :gutter="20">
12
+ <el-button @click="helpMode = !helpMode" size="mini">Help Mode</el-button>
13
+ <el-button @click="saveSettings()" size="mini">Save Settings</el-button>
14
+ <el-button :disabled="mapSettings.length === 0" @click="restoreSettings()" size="mini">Restore Settings</el-button>
15
+ <el-autocomplete class="search-box" placeholder="Search"
16
+ v-model="searchText"
17
+ :fetch-suggestions="fetchSuggestions"
18
+ @keyup.enter.native="search"
19
+ @select="search"
20
+ popper-class="autocomplete-popper">
21
+ </el-autocomplete>
22
+ </el-row>
23
+ </div>
24
+ <el-button class="options-button" icon="el-icon-setting" slot="reference">Options</el-button>
25
+ </el-popover>
26
+
27
+ <MultiFlatmapVuer ref="multi" :availableSpecies="availableSpecies"
28
+ @resource-selected="FlatmapSelected" :minZoom="minZoom"
29
+ @pan-zoom-callback="panZoomcallback" @open-map="openMap"
30
+ @ready="FlatmapReady" :featureInfo="featureInfo" :searchable="searchable"
31
+ :layerControl="layerControl"
32
+ :initial="initial" :pathControls="pathControls" :helpMode="helpMode"
33
+ :displayMinimap="true" :enableOpenMapUI="true" :flatmapAPI="flatmapAPI"/>
34
+ </div>
35
+ </template>
36
+
37
+ <script>
38
+ /* eslint-disable no-alert, no-console */
39
+ import Vue from "vue";
40
+ import MultiFlatmapVuer from './components/MultiFlatmapVuer.vue'
41
+ import {
42
+ Autocomplete,
43
+ Button,
44
+ Col,
45
+ Popover,
46
+ Row,
47
+ } from 'element-ui';
48
+ import "./icons/mapicon-species-style.css";
49
+ Vue.use(Autocomplete);
50
+ Vue.use(Button);
51
+ Vue.use(Col);
52
+ Vue.use(Popover);
53
+ Vue.use(Row);
54
+
55
+ export default {
56
+ name: 'app',
57
+ methods: {
58
+ saveSettings: function() {
59
+ this.mapSettings.push(this.$refs.multi.getState());
60
+ },
61
+ restoreSettings: function() {
62
+ if (this.mapSettings.length > 0)
63
+ this.$refs.multi.setState(this.mapSettings.pop());
64
+ },
65
+ FlatmapSelected: function(resource) {
66
+ if (resource.eventType === "click") {
67
+ console.log('resource', resource);
68
+ }
69
+ },
70
+ FlatmapReady: function(component) {
71
+ console.log(component);
72
+ let taxon = component.mapImp.describes;
73
+ let id = component.mapImp.addMarker("UBERON:0000948");
74
+ window.flatmapImp = component.mapImp;
75
+ component.enablePanZoomEvents(true);
76
+ //component.showPathwaysDrawer(false);
77
+ console.log(taxon, id);
78
+ //component.searchAndShowResult("heart");
79
+ },
80
+ panZoomcallback: function(payload) {
81
+ this.payload = payload
82
+ },
83
+ openMap: function (map) {
84
+ console.log(map)
85
+ },
86
+ fetchSuggestions: function(term, cb) {
87
+ if (term === "") {
88
+ cb([]);
89
+ } else {
90
+ const suggestions = [];
91
+ const results = this.$refs.multi.getCurrentFlatmap().searchSuggestions(term);
92
+ results.__featureIds.forEach(id => {
93
+ const annotation = this.$refs.multi.getCurrentFlatmap().mapImp.annotation(id);
94
+ if (annotation && annotation.label)
95
+ suggestions.push(annotation.label);
96
+ });
97
+ const unique = new Set(suggestions);
98
+ suggestions.length = 0;
99
+ for (const item of unique) {
100
+ suggestions.push({"value": "\"" + item +"\""});
101
+ }
102
+ cb(suggestions);
103
+ }
104
+ },
105
+ search: function() {
106
+ console.log(this.searchText)
107
+ this.$refs.multi.getCurrentFlatmap().searchAndShowResult(this.searchText, true);
108
+ }
109
+ },
110
+ data: function(){
111
+ return {
112
+ searchText: "",
113
+ featureInfo: true,
114
+ searchable: true,
115
+ pathControls: true,
116
+ layerControl: true,
117
+ minZoom: 4,
118
+ availableSpecies : {
119
+ "Human Female":{taxo: "NCBITaxon:9606", biologicalSex: "PATO:0000383", iconClass:"mapicon-icon_human", displayWarning:true},
120
+ "Human Male":{taxo: "NCBITaxon:9606", biologicalSex: "PATO:0000384", iconClass:"mapicon-icon_human", displayWarning:true},
121
+ "Rat":{taxo: "NCBITaxon:10114", iconClass:"mapicon-icon_rat", displayWarning:true, displayLatestChanges:true},
122
+ "Mouse":{taxo: "NCBITaxon:10090", iconClass:"mapicon-icon_mouse", displayWarning:true},
123
+ "Kember":{taxo: "ABI:1000001", displayWarning:true},
124
+ "Pig":{taxo: "NCBITaxon:9823", iconClass:"mapicon-icon_pig", displayWarning:true},
125
+ "Cat":{taxo: "NCBITaxon:9685", iconClass:"mapicon-icon_cat", displayWarning:true},
126
+ "Functional Connectivity": {taxo: "FunctionalConnectivity", displayWarning:true},
127
+ },
128
+ tooltipContent: undefined,
129
+ tStyle: {
130
+ top: "200px",
131
+ left: "200px",
132
+ position: "absolute"
133
+ },
134
+ displayCloseButton: false,
135
+ initial: "Rat",
136
+ helpMode: false,
137
+ mapSettings: [],
138
+ //flatmapAPI: "https://mapcore-demo.org/current/flatmap/v2/"
139
+ //flatmapAPI: "https://mapcore-demo.org/devel/flatmap/v3/"
140
+ //flatmapAPI: "https://mapcore-demo.org/current/flatmap/v3/"
141
+ flatmapAPI: "https://mapcore-demo.org/devel/flatmap/v4/"
142
+ //flatmapAPI: "https://mapcore-demo.org/fccb/flatmap/"
143
+ //flatmapAPI: "https://mapcore-demo.org/staging/flatmap/v1/"
144
+ // flatmapAPI: "https://mapcore-demo.org/devel/flatmap/v1/"
145
+ }
146
+ },
147
+ components: {
148
+ MultiFlatmapVuer,
149
+ }
150
+ }
151
+ </script>
152
+
153
+ <style lang="scss">
154
+ @import "~element-ui/packages/theme-chalk/src/autocomplete";
155
+ @import "~element-ui/packages/theme-chalk/src/button";
156
+ @import "~element-ui/packages/theme-chalk/src/col";
157
+ @import "~element-ui/packages/theme-chalk/src/popover";
158
+ @import "~element-ui/packages/theme-chalk/src/row";
159
+
160
+ #app {
161
+ font-family: 'Asap', 'Avenir', Helvetica, Arial, sans-serif;
162
+ -webkit-font-smoothing: antialiased;
163
+ -moz-osx-font-smoothing: grayscale;
164
+ text-align: center;
165
+ color: #2c3e50;
166
+ height:100%;
167
+ width: 100%;
168
+ position:absolute;
169
+ }
170
+
171
+ .maplibregl-ctrl-top-left .maplibregl-ctrl {
172
+ margin-top:120px;
173
+ }
174
+
175
+ .search-box {
176
+ margin-top: 2px;
177
+ height:28px;
178
+ ::v-deep .el-input__inner {
179
+ background-color: $background;
180
+ height:28px;
181
+ line-height:28px;
182
+ border: 1px solid rgb(144, 147, 153);
183
+ border-radius: 4px;
184
+ &:focus {
185
+ border-color: $app-primary-color;
186
+ }
187
+ }
188
+ }
189
+
190
+ ::v-deep .autocomplete-popper {
191
+ min-width:137px!important;
192
+ width: auto!important;
193
+ }
194
+
195
+ body {
196
+ margin: 0px;
197
+ }
198
+
199
+ .maplibregl-ctrl-top-left .maplibregl-ctrl {
200
+ margin-top:120px;
201
+ }
202
+
203
+ .popover{
204
+ top:5px;
205
+ right:calc( 50% - 20px);
206
+ position:absolute;
207
+ z-index:1000;
208
+ }
209
+
210
+ .el-row {
211
+ margin-bottom: 5px;
212
+ &:last-child {
213
+ margin-bottom: 0;
214
+ }
215
+ }
216
+
217
+ .options-container{
218
+
219
+ text-align: center;
220
+ }
221
+
222
+ .el-tabs__content {
223
+ height:100%;
224
+ }
225
+
226
+ </style>