• Is it possible to specify in the simnor_map shortcode to force satellite view?

    The google maps API uses:

    mapTypeId: google.maps.MapTypeId.ROADMAP

    in “var mapOptions” to specify the map type. You would need to change google.maps.MapTypeId.ROADMAP to google.maps.MapTypeId.SATELLITE (other options include HYBRID and TERRAIN)

    https://www.ads-software.com/plugins/simnor-shortcodes/

Viewing 1 replies (of 1 total)
  • Thread Starter IAmThePat

    (@iamthepat)

    Hey,

    I’m not too familiar with writing WP plugins, but I dove into this and it was an easy enough change. I added a select menu on the shortcode creation page (simnor-shortcodes/includes/tinymce_button.js) and added the type to shortcode_atts arra (simnor-shortcodes/includes/shortcodes.php) which sets the map type in for mapTypeId

    It isn’t really a huge change, but in case you want to add it to your plugin, I’ve added a link below.

    https://www.dropbox.com/s/twu6m5w5plx8l4s/simnor-shortcodes.MapUpdate.zip?dl=0

Viewing 1 replies (of 1 total)
  • The topic ‘Google Maps Satellite view’ is closed to new replies.