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
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
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.
Hello. Is it possible to do that change using child theme and filter?
Thank you.
Best regards
Maciej