Added heatmap
This commit is contained in:
25
src/components/heatmap.js
Normal file
25
src/components/heatmap.js
Normal file
@@ -0,0 +1,25 @@
|
||||
import buildComponent from './build-component.js'
|
||||
|
||||
const props = {
|
||||
options: {
|
||||
type: Object,
|
||||
twoWay: false,
|
||||
default: () => {
|
||||
},
|
||||
},
|
||||
data: {
|
||||
type: Array,
|
||||
twoWay: true
|
||||
},
|
||||
}
|
||||
|
||||
const events = [];
|
||||
|
||||
export default buildComponent({
|
||||
mappedProps: props,
|
||||
name: 'heatmap',
|
||||
ctr: () => google.maps.visualization.HeatmapLayer,
|
||||
events,
|
||||
})
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ import Marker from './components/marker.vue'
|
||||
import GMapCluster from './components/cluster.vue'
|
||||
import InfoWindow from './components/infoWindow.vue'
|
||||
import Map from './components/map.vue'
|
||||
import Heatmap from './components/heatmap'
|
||||
import Autocomplete from './components/autocomplete.vue'
|
||||
|
||||
import MapElementMixin from './components/mapElementMixin'
|
||||
@@ -28,6 +29,7 @@ export {
|
||||
InfoWindow,
|
||||
Map,
|
||||
MapElementMixin,
|
||||
Heatmap,
|
||||
buildComponent,
|
||||
Autocomplete,
|
||||
MountableMixin,
|
||||
@@ -72,6 +74,7 @@ export default function install(Vue, options) {
|
||||
Vue.component('GMapCircle', Circle)
|
||||
Vue.component('GMapRectangle', Rectangle)
|
||||
Vue.component('GMapAutocomplete', Autocomplete)
|
||||
Vue.component('GMapHeatmap', Heatmap)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user