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

    (@remcotolsma)

    Unfortunately this is not yet possible. However, we have plans to develop this functionality. When do you need this functionality?

    Hi Remco. I was also wanting this, sort of. I’m mapping all hydroelectric projects in the Northwest U.S., each one an individual post with description and pic. I was looking for a way to display a map that includes all posts on it, clickable to each individual post. This way I can let the user search for a hydro project using a map view. Does your plugin already do this?

    Nice job by the way, very clean and easy.

    Plugin Author Remco Tolsma

    (@remcotolsma)

    The idea of our Google Maps plugin is that you can specify one location per post. It is now possible to show multiple posts on one Google Maps. For this you can use the “pronamic_google_maps_mashup” function. In the first parameter you can pass WordPress query parameter string or array. In the second parameter you can specify some options like the width, height and map type id of the Google Maps.

    <?php 
    
    if(function_exists('pronamic_google_maps_mashup')) {
    	pronamic_google_maps_mashup(
    		array(
    			'post_type' => 'project'
    		) ,
    		array(
    			'width' => 300 ,
    			'height' => 200 ,
    			'map_type_id' => 'satellite'
    		)
    	);
    }
    
    ?>

    This feature is still quite basic, if you need extra functionalities please let us know.

    Hi,

    i would like to put a map in the header part of website.
    My issue is that i need to add parameters longitude and latitude to locate my location.

    my code :

    if(function_exists('pronamic_google_maps_mashup')) {
    						pronamic_google_maps_mashup(
    							array(
    								'post_type' => 'post'
    							) ,
    array(
    <code></code>'width' => 294 ,
    								'height' => 103 ,
    								'map_type_id' => 'satellite' ,
    								'zoom' => 10 ,
    								'latitude' => '-4.629089' ,
    								'longitude' => '55.456436' ,
    								'marker_options' => array(
    									'icon' => 'http://google-maps-icons.googlecode.com/files/photo.png'
    								)
    							)
    						);
    					}

    The google maps is shown but not the location that i want.

    Where sould I put longitude and latitude parameters ?

    First, thank you for this plug in and the work you all have done. This may be too advanced for me but I wanted one map on one page where users can add a location marker of an item and be able to track where it goes. Any ideas?

    Plugin Author Remco Tolsma

    (@remcotolsma)

    @mherbelin you could set the ‘fit_bounds’ parameter to false to prevent automatic scaling (fitting bounds).

    if(function_exists('pronamic_google_maps_mashup')) {
    	pronamic_google_maps_mashup(
    		array(
    			'post_type' => 'post'
    		) ,
    		array(
    			'width' => 294 ,
    			'height' => 103 ,
    			'map_type_id' => 'satellite' ,
    			'zoom' => 10 ,
    			'latitude' => '-4.629089' ,
    			'longitude' => '55.456436' ,
    			'marker_options' => array(
    				'icon' => 'http://google-maps-icons.googlecode.com/files/photo.png'
    			) ,
    			'fit_bounds' => false
    		)
    	);
    }
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Pronamic Google Maps] adding more then one address?’ is closed to new replies.