• Resolved Ian Anderson Gray

    (@baritoneuk)


    Fab plugin- thanks.

    I’m trying to sort out the mashup function. I’ve managed to add thumbnail images to the balloon which I’m really pleased about. However, I can’t work out how to change the zoom feature in the Google Maps to the simple +/- version. Can I do this?

    Also, is there a list of functions that I can add in the mash-up map? It would be good if this could be added in the documentation.
    Thanks!

    http://wordpress.org/extend/plugins/pronamic-google-maps/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Remco Tolsma

    (@remcotolsma)

    If you have some JavaScript / jQuery knowledge you can achieve this. The ‘pronamic-google-maps-ready’ event is fired after the Google Maps mashup is ready.

    Thread Starter Ian Anderson Gray

    (@baritoneuk)

    I have some Javascript/JQuery Knowledge, but obviously not enough as I don’t have a clue how to implement what you are saying! I have the following code for one of the pages I want a map to show (taken from one of the documentation/forum pages):

    if(function_exists('pronamic_google_maps_mashup')) {
        pronamic_google_maps_mashup(
            array(
                'post_type' => 'post',
    	    'posts_per_page' => -1
            ) ,
            array(
                'width' => 620 ,
                'height' => 500 ,
                //'map_type_id' => 'street' ,
                //'marker_options' => array('icon' => 'http://google-maps-icons.googlecode.com/files/photo.png')
            )
        );
    }

    I was hoping there was an option to change the zoom controls here (in a similar way to the marker options). Is this not the case?

    Plugin Author Remco Tolsma

    (@remcotolsma)

    You can’t adjust the zoom controls with pronamic_google_maps_mashup() optoins. I have looked at the control documentation and we could add this as a feature in a next relase.

    http://code.google.com/intl/nl/apis/maps/documentation/javascript/controls.html

    For now you can use somehting like this:

    jQuery(document).ready(function($) {
    	// Mashup
    	$(".pgmm").bind("pronamic-google-maps-ready", function(event, map) {
    		map.setOptions({
    			zoomControlOptions: {
    				style: google.maps.ZoomControlStyle.SMALL
    			}
    		});
    	});
    }
    Thread Starter Ian Anderson Gray

    (@baritoneuk)

    Fab, thanks. This works really well. Be great if it could be added into the next release.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Pronamic Google Maps] Zoom controls’ is closed to new replies.