Home › Forums › Calendar Products › Events Calendar PRO › Google map resizing on the single venue page?
- This topic has 3 replies, 2 voices, and was last updated 11 years ago by
Brian.
-
AuthorPosts
-
June 10, 2015 at 9:21 pm #968697
James
ParticipantHi,
With regards to the google map that shows on the Venue page, my map seem to be a little on the small size about 491px x 211px.
To get an idea of sizing check https://www.jamesdoylephoto.com/?p=34282
On the Event page the size is about right at 588px x 363px.
How do I change the size on the Venue page to a larger size?
Also, is there a way to have the maps show Satellite view by default?
Thanks for any assistance.
Cheers
James
June 11, 2015 at 7:00 am #968783Brian
MemberHi James,
Thanks for using our plugins.
I can help out here.
You are going to want to follow our themer’s guide:
https://theeventscalendar.com/knowledgebase/themers-guide/
To move and edit this file:
events-calendar-pro\views\pro\single-venue.php
In 3.10 it will be in this location:
events-calendar-pro\src\views\pro\single-venue.php
To this file in your theme:
yourtheme\tribe-events\pro\single-venue.php
There you can modify this line:
<?php echo tribe_get_embedded_map( $venue_id, '100%', '200px' ); ?>Change that 200px to the height you would like.
For the width try out this css and change the percentage (default is 50%)
.tribe-events-venue .tribe-events-venue-meta .tribe-events-map-wrap {
width: 60%;
}Add that css to your theme’s stylesheet or through a plugin such as Simple Custom CSS.
Also, is there a way to have the maps show Satellite view by default?
There is no option to default to Satellite. Although you could try modifying it if you really like. I outline steps how to do that here:
How to change default gmap view to satellite – on events and venues
Let me know how the Venue Map Size works out.
Thanks
June 12, 2015 at 3:31 pm #969213James
ParticipantHi Brian,
That worked a treat thanks! About a minute and it was done.
I haven’t done anything with the using Satellite by default, looks a bit complicated for me.
As always, great support from you guys and gals, there at Tribe!
Go ahead and close this thread if you want Brian.
Cheers
James
June 15, 2015 at 7:40 am #969424Brian
MemberGreat glad it helps.
I am going to close this ticket, but if you need anything else related to this topic or another please post a new topic on the forum and we can help you out.
Thanks
-
AuthorPosts
- The topic ‘Google map resizing on the single venue page?’ is closed to new replies.
