Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #566627

    Hi,
    i understand from other forum-posts that it is not possible to switch between Roadmap or Satellite view for the Google Maps Element.
    But my question is – is it possible with easy code modification to change Roadmap to Satellite?
    So the user would not have any switcher or Dropdown but the default view would be Satellite instead of Roadmap?
    In which file is the map put together so i can have a look on it?

    Thanks
    Mathias

    #567499

    Hi,

    Open js/shortcodes.js and look for line:

    mapTypeId:google.maps.MapTypeId.ROADMAP,
    

    Replace it by this:

    mapTypeId:google.maps.MapTypeId.SATELLITE,
    

    or:

    mapTypeId:google.maps.MapTypeId.HYBRID,
    

    Regards,
    Josue

    #570774

    thanks that worked great. maybe if nots so big work this would be a great checkbox for the maps plugin – if implementing the toggle on the map is too much work. but for me thats ok like that thanks.

    #570887

    You are welcome, glad to help :)

    Feel free to request it here as a new feature.

    Regards,
    Josue

    #815819

    Hello. Is it possible to do that change using child theme and filter?

    Thank you.
    Best regards
    Maciej

    #817337

    Hi,

    Thank you for coming back.

    As this is a javascript file it is not possible. You have to change it in the original file.

    Best regards,
    Günter

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.