Home › Forums › Calendar Products › Events Calendar PRO › How to change default gmap view to satellite – on events and venues
- This topic has 4 replies, 2 voices, and was last updated 11 years, 3 months ago by
Brian.
-
AuthorPosts
-
November 14, 2014 at 6:23 am #884312
flawlessvictory
ParticipantHey,
I am looking for a little help.
I want to change the default map view on both event pages and also venue pages to satellite.
I should be able to figure out the templating system – https://theeventscalendar.com/support/documentation/events-calendar-themers-guide/#examples
I just need to know what files to modify and the code snippet/s I need enter..
Thanks.
November 14, 2014 at 8:31 am #884570Brian
MemberHi,
Thanks for using our plugins and I can help you get going on this.
The maps are created using javascript so there is not way to modify them using the themer’s guide.
These are the 4 scripts that create the maps, the Pro script is for the Map view. The minified version is used on the front end.
the-events-calendar\resources\embedded-map.js
\the-events-calendar\resources\embedded-map.min.js
\events-calendar-pro\resources\tribe-events-ajax-maps.js
\events-calendar-pro\resources\tribe-events-ajax-maps.min.js
You can either dequeue those scripts and replace them with copies in your theme or edit them directly. If you edit them directly you will lose your changes on every update.
In those scripts you will want to change MapTypeId.ROADMAP to MapTypeId.SATELLITE or one of the other option types.
There is not much more I can help with this customization and that gets you close to what you are looking for. Once the changes are made please make sure to clear your browsers cache or the changes will not show.
Let me know if you have any follow up questions.
Thanks
November 14, 2014 at 8:35 am #884591flawlessvictory
ParticipantI found this:
https://tri.be/support/forums/topic/google-maps-view/Are you saying this method no longer works?
Neither of your suggestions are particularly enticing. There really should be a setting for this option in the backend.
November 14, 2014 at 9:42 am #884724Brian
MemberOk I did not know we had a snippet before.
That snippet is from before 3.xx so would not work in the current version.
I tried to see if it would work in the current version with some modifications, but we changed so the only way is to modify the scripts now.
It is something that we could add as a feature and I do see the value in it. If you would like to request that feature please head to our UserVoice Page and add your own or upvote that feature as they will increase the chances of it being added to a future version.
http://tribe.uservoice.com/forums/195723-feature-ideas
Let me know if you have any follow up questions.
Thanks
December 30, 2014 at 7:24 am #926745Brian
MemberI am going to close this topic as we typically close threads if there is no activity after two weeks. Feel free to create a new thread and reference this one to save you time.
Thanks
-
AuthorPosts
- The topic ‘How to change default gmap view to satellite – on events and venues’ is closed to new replies.
