forked from simwrapper/simwrapper
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: new "Area Map" viz type for zone maps, etc: viz-map*.yaml
Zone, TAZ, area maps: you can have it all with this new plugin Embed in dashboard using 'type: map' or use it standalone with a viz-map*.yaml config file.
- Loading branch information
Showing
3 changed files
with
67 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<template lang="pug"> | ||
fancy-polygon-map.deck-map( | ||
:files="files" | ||
:fileSystemConfig="fileSystemConfig" | ||
:root="fileSystemConfig.slug" | ||
:subfolder="subfolder" | ||
:config="config" | ||
:thumbnail="false" | ||
:datamanager="datamanager" | ||
:yamlConfig="'funk-yaml-config.yaml'" | ||
@isLoaded="isLoaded" | ||
) | ||
|
||
</template> | ||
|
||
<script lang="ts"> | ||
import { Vue, Component, Watch, Prop } from 'vue-property-decorator' | ||
import { FileSystemConfig } from '@/Globals' | ||
import FancyPolygonMap from '@/plugins/shape-file/FancyPolygonMap.vue' | ||
import DashboardDataManager from '@/js/DashboardDataManager' | ||
@Component({ components: { FancyPolygonMap } }) | ||
export default class VueComponent extends Vue { | ||
@Prop({ required: true }) fileSystemConfig!: FileSystemConfig | ||
@Prop({ required: true }) subfolder!: string | ||
@Prop({ required: true }) files!: string[] | ||
@Prop({ required: true }) config!: any | ||
@Prop({ required: false }) datamanager!: DashboardDataManager | ||
@Prop({ required: false }) yamlConfig!: string | ||
private isLoaded() { | ||
this.$emit('isLoaded') | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
@import '@/styles.scss'; | ||
.deck-map { | ||
position: absolute; | ||
top: 0; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
@media only screen and (max-width: 640px) { | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters