Skip to content

Commit

Permalink
fix: minor housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayakkulkarni committed Oct 4, 2021
1 parent 35ba9ce commit 629e937
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
24 changes: 10 additions & 14 deletions components/map/CommonMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,14 @@
'text-gray-800 bg-white dark:text-white dark:bg-gray-800':
!viz.isHeatmap,
}"
@click="
>
<!-- @click="
$emit('update:viz', {
isMarker: false,
isCluster: false,
isHeatmap: !viz.isHeatmap,
})
"
>
" -->
<span class="sm:block hidden">Heatmap</span>
<svg
class="h-4 fill-current sm:hidden block"
Expand Down Expand Up @@ -570,18 +570,14 @@
import mapboxgl from 'mapbox-gl';
import type { PropType, SetupContext } from '@nuxtjs/composition-api';
import type { EventData, Map } from 'mapbox-gl';
import type { Basemaps } from '~/@types/map';
import type { Basemaps as BaseMaps } from '~/@types/map';
import Geocoder from '@/components/map/_partials/Geocoder.vue';
import Basemaps from '@/components/map/_partials/Basemaps.vue';
export default defineComponent({
components: {
Geocoder: () =>
import(
/* webpackChunkName: "GeocoderComponent" */ '@/components/map/_partials/Geocoder.vue'
),
Basemaps: () =>
import(
/* webpackChunkName: "BasemapsComponent" */ '@/components/map/_partials/Basemaps.vue'
),
Geocoder,
Basemaps,
},
props: {
zoom: {
Expand Down Expand Up @@ -630,7 +626,7 @@
maxZoom: 22,
},
map: {
bbox: [] as number[][],
bbox: [] as number[] | number[][],
},
mapboxgl,
utils: {
Expand Down Expand Up @@ -675,7 +671,7 @@
'https://maps-api.meteoblue.com/mapstyle/weathermap?lang=en&enableOpenlayersLicensing=true',
},
],
} as Basemaps,
} as BaseMaps,
},
compass: {
shown: false as boolean,
Expand Down
4 changes: 2 additions & 2 deletions components/map/_partials/Geocoder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<input
id="geocoder"
v-model="state.search"
autofocus="autofocus"
type="text"
name="geocoder"
class="
Expand All @@ -19,6 +18,7 @@
sm:text-sm
"
placeholder="eg. Mumbai"
autofocus
@input="geocode"
/>
<div
Expand Down Expand Up @@ -67,7 +67,7 @@
name: 'Geocoder',
props: {
bbox: {
type: Array as PropType<number[]>,
type: Array as PropType<number[] | number[][]>,
required: false,
default: () => [],
},
Expand Down

0 comments on commit 629e937

Please sign in to comment.