| | |
| | | <layer-manager ref="layerManager"></layer-manager> |
| | | <location ref="location"></location> |
| | | <knowledge ref="knowledge"></knowledge> |
| | | <lineRoaming ref="lineRoaming"></lineRoaming> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | import menuManager from '@/assets/js/mapSdk/menuManager.js'; |
| | | import location from './location.vue'; |
| | | import knowledge from './knowledge.vue'; |
| | | import lineRoaming from './lineRoaming.vue'; |
| | | |
| | | export default { |
| | | name: 'mapView', |
| | | components: { layerManager, location, knowledge }, |
| | | components: { layerManager, location, knowledge, lineRoaming }, |
| | | data() { |
| | | return { |
| | | menuIsShow: false, |
| | |
| | | this.setPopCloseAll(); |
| | | const obj = menuManager.init(command); |
| | | if (obj) { |
| | | |
| | | this.setPopShow(obj); |
| | | |
| | | } |
| | | }, |
| | | setPopCloseAll() { |
| | |
| | | break; |
| | | case '知识图谱': |
| | | this.$refs && this.$refs.knowledge && this.$refs.knowledge.open(); |
| | | break; |
| | | case '线路漫游': |
| | | this.$refs && this.$refs.lineRoaming && this.$refs.lineRoaming.open(); |
| | | break; |
| | | default: |
| | | break; |
| | |
| | | |
| | | .menuBox { |
| | | position: absolute; |
| | | z-index: 99999; |
| | | z-index: 40; |
| | | top: 20px; |
| | | right: 2px; |
| | | border-radius: 0 6px 6px 0; |