Reply To: Control Position

Home Forums MapPress Support Control Position Reply To: Control Position

#13575
Chris
Keymaster

Hi,

Unfortunately, those are one of the few API options the plugin doesn’t provide.

You could probably set them using javascript, though. This will get the Google Map object from the first map on the screen (mapp0), or you can use the name=”xyz” parameter in the shortcode to set your own map name:

mapp0.getMap();

Once you have the map, use its setOptions method to set the control options as described here:

https://developers.google.com/maps/documentation/javascript/reference

For example:

jQuery(document).ready(function() {
  var map = mapp0.getMap();
  map.setOptions({ panControlOptions : { position : google.maps.ControlPosition.BOTTOM_RIGHT } });
});