Skip to content

Commit 3cb7a1b

Browse files
mrsaicharan1abhinavk96
authored andcommitted
fix: Fixed maps on events & explore page (#3271)
* Fixed maps on events & explore page * Removed redundant action
1 parent 2b6e049 commit 3cb7a1b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

app/templates/components/explore/side-bar.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="map item">
2-
{{#g-map lat=37.7833 lng=-122.4167 zoom=2 address=location class='google-maps' as |context|}}
2+
{{#g-map markersFitMode='live' lat=37.7833 lng=-122.4167 zoom=2 address=location class='google-maps' as |context|}}
33
{{g-map-address-marker context address=location onLocationChange=(action 'onLocationChangeHandler')}}
44
{{/g-map}}
55
</div>

app/templates/components/public/event-map.hbs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
{{#if event.isMapShown}}
22
<div class="eight wide column event-map">
33
<h1>{{t 'Getting Here'}}</h1>
4-
{{#g-map lat=event.latitude lng=event.longitude zoom=15 gestureHandling='cooperative' streetView='StreetViewPanorama' as |context|}}
5-
{{g-map-marker context lat=event.latitude lng=event.longitude}}
4+
{{#g-map markersFitMode='live' lat=37.744 lng=-122.4367 address=event.locationName zoom=2 class='google-maps' as |context|}}
5+
{{#g-map-address-marker context address=event.locationName as |markerContext|}}
6+
{{#g-map-infowindow markerContext}}
7+
{{event.locationName}}
8+
{{/g-map-infowindow}}
9+
{{/g-map-address-marker}}
610
{{/g-map}}
711
</div>
812
{{/if}}

0 commit comments

Comments
 (0)