• the plugin is great and i’m enjoying using it. however, i would like the lat/long link in the bgmp list to open the corresponding marker’s info window on the map on the page, rather than be taken to google maps.

    i have looked at core.php and found the following code snippet:

    $output .= sprintf('
    
    <li>
    		<h3>%s</h3>
    		<div>%s</div>
    		<p>Find on Google Maps: <a href="%s">%s</a></p>
    	</li>
    ',
    	$p->post_title,
    	nl2br( $p->post_content ),
    	'https://google.com/maps?q='. $address,
    	$address
    );

    which contains each placemark’s link, but can anyone help with creating the code to open the info window of that placemark?

    i have a function from another project that handles the same type of call, but can’t see how to integrate the placemark variable it:

    function myclick(i) {
    	gmarkers[i].openInfoWindowHtml(htmls[i]);
    }

    where i is the placemark id number, called with:

    <a href="myclick(' + i + ')">LINK HERE</a>

    can anyone help?

    i think it would be a great enhancement to a great plugin

    keef

    https://www.ads-software.com/extend/plugins/basic-google-maps-placemarks/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Basic Google Maps Placemarks] i want the bgmp list to link to map on page’ is closed to new replies.