How to change default gmap view to satellite – on events and venues

Home Forums Calendar Products Events Calendar PRO How to change default gmap view to satellite – on events and venues

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #884312
    flawlessvictory
    Participant

    Hey,

    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.

    #884570
    Brian
    Member

    Hi,

    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

    #884591
    flawlessvictory
    Participant

    I 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.

    #884724
    Brian
    Member

    Ok 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

    #926745
    Brian
    Member

    I 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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘How to change default gmap view to satellite – on events and venues’ is closed to new replies.